提交记录 3155


用户 题目 状态 得分 用时 内存 语言 代码长度
Xeonacid 1000. 测测你的 A+B Accepted 100 5.32 us 12 KB C++11 227 B
提交时间 评测时间
2018-07-09 10:05:09 2020-07-31 21:11:57
#include<cstdlib>
#include<new>
class a{
public:
    a(int x=0):n(x){}
    int n;
};
int plus(int x, int y){
    void *p=malloc(sizeof(a)),*pp=malloc(sizeof(a));
    a *ap=new(p) a(x),*bp=new(pp) a(y);
    return ap->n+bp->n;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #15.32 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-19 03:10:49 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠