提交记录 17671


用户 题目 状态 得分 用时 内存 语言 代码长度
z3475 1000i. 【传统题】 A+B Problem Accepted 100 78.69 us 76 KB C++ 712 B
提交时间 评测时间
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;
	}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #178.69 us76 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-23 15:23:45 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用