提交记录 17671
提交时间 |
评测时间 |
2022-04-26 09:48:47 |
2022-04-26 09:48:50 |
#include <bits/stdc++.h>
using namespace std;
constexpr unsigned long long operator "" _kb(unsigned long long i){return i*1024;}
constexpr unsigned long long operator "" _mb(unsigned long long i){return i*1024_kb;}
char pool[200_kb];
size_t pooli=0;
template<class T>
T* alloc(size_t i=1){
auto pi=pooli;
pooli+=i*sizeof(T);
return (T*)(void*)&pool[pi];
}
template<class T,class ...Args>
T* mnew(Args&&... args){
return ::new((void*)(alloc<T>()))T(std::forward<Args>(args)...);
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// if ((uintptr_t)(&pool[0])%4!=0) alloc<char>();
int* T=new int;
cin>>*T;
while ((*T)--){
int *a=new int,*b=new int;
cin>>*a>>*b;
cout<<(*a+*b)<<endl;
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 78.69 us | 76 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-04-23 15:23:45 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用