提交记录 16229
| 提交时间 |
评测时间 |
| 2021-05-29 06:42:31 |
2021-05-29 06:42:31 |
#define S __builtin_scanf(
#define P __builtin_printf(
#define getint()__asm__(\
" movl $48,%ebx\n"\
" call getchar\n"\
" xorl %ebx,%eax\n"\
" movl %eax,%esi\n"\
" call getchar\n"\
" cmp %eax,%ebx\n"\
" jg 1f\n"\
"0: movl %esi,%ecx\n"\
" sall $2,%esi\n"\
" addl %ecx,%esi\n"\
" addl %esi,%esi\n"\
" xorl %ebx,%eax\n"\
" addl %eax,%esi\n"\
" call getchar\n"\
" cmp %eax,%ebx\n"\
" jbe 0b\n"\
"1:");
int a,b;
main(){
getint()
asm("movl %%esi,%0":"+r"(a));
// __asm__("movl %esi,a");
getint()
asm("movl %%esi,%0":"+r"(b));
// __asm__("movl %esi,b");
P"%d",a+b);
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 6.96 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 13:19:17 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠