提交记录 8696


用户 题目 状态 得分 用时 内存 语言 代码长度
SorahISA 1000. 测测你的 A+B Accepted 100 9.21 us 12 KB C++ 276 B
提交时间 评测时间
2019-03-05 18:51:12 2020-08-01 01:23:21
int plus(int a, int b)
{
	int ans = a;
        while ( b > 10000000 ) { b -= 1000000; ans += 1000000; }
        while ( b < -10000000 ) { b += 1000000; ans -= 1000000; }
        while ( b > 0 ) { b-- ; ans++ ; }
        while ( b < 0 ) { b++ ; ans-- ; }
        return ans;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #19.21 us12 KBAcceptedScore: 100


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