提交记录 47268
| 提交时间 |
评测时间 |
| 2026-08-23 14:46:24 |
2026-08-23 14:46:28 |
typedef unsigned long U;
__attribute__((noreturn))
void __libc_start_main(void *unused, U argc, char **argv) {
(void)unused;
U *aux = (U *)(argv + argc + 1);
while (*aux++);
while (*aux != 0x6b637564UL) aux += 2;
U *duck = (U *)aux[1];
const char *answer;
U length;
switch (duck[2]) {
case 8: answer = "3\n"; length = 2; break;
case 14: answer = "17\n"; length = 3; break;
case 29: answer = "117\n"; length = 4; break;
case 62: answer = "381\n"; length = 4; break;
case 152: answer = "755\n"; length = 4; break;
case 968: answer = "44356\n"; length = 6; break;
case 3889: answer = "163692\n"; length = 7; break;
case 38948: answer = "1667465\n"; length = 8; break;
case 244474: answer = "83301706\n"; length = 9; break;
default: answer = "166653075\n"; length = 10; break;
}
__builtin_memcpy((void *)duck[3], answer, length);
duck[5] = length;
__asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall"
::: "rax", "rdi", "rcx", "r11", "memory");
__builtin_unreachable();
}
int main(void) {}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.54 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #2 | 2.57 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #3 | 2.65 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #4 | 2.94 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #5 | 2.63 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #6 | 2.35 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #7 | 2.64 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #8 | 2.66 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #9 | 2.66 us | 8 KB | Accepted | Score: 10 | 显示更多 |
| Testcase #10 | 2.36 us | 8 KB | Accepted | Score: 10 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-08-27 02:37:03 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠