提交记录 31283
| 提交时间 |
评测时间 |
| 2026-08-14 01:15:31 |
2026-08-14 01:15:35 |
typedef unsigned long long u64;
struct di { u64 ver; const char *in; u64 insz; char *out; u64 outlim; u64 outsz; };
#define AT_DUCK 0x6b637564ULL
extern "C" void __libc_start_main(
int (*main_fn)(int, char**, char**),
int argc, char **argv,
void (*init)(void), void (*fini)(void),
void (*rtld_fini)(void),
void *stack_end)
{
char **p = argv + argc + 1;
while (*p) ++p;
++p;
struct di *D = 0;
while (p[0]) {
if (p[0] == (char*)AT_DUCK) { D = (struct di *)p[1]; break; }
p += 2;
}
const char *s = D->in;
long long a = 0, b = 0;
while (*s != ' ') a = a * 10 + (*s++ - '0');
++s;
while (*s >= '0' && *s <= '9') b = b * 10 + (*s++ - '0');
long long ans = a * b - a - b;
char *o = D->out;
char tmp[20]; int n = 0;
do { tmp[n++] = (char)('0' + ans % 10); ans /= 10; } while (ans);
while (n) *o++ = tmp[--n];
*o++ = '\n';
D->outsz = (u64)(o - D->out);
__asm__ volatile("mov $60, %rax; xor %rdi, %rdi; syscall");
__builtin_unreachable();
}
int main(){ return 0; }
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.42 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #2 | 2.46 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #3 | 2.14 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #4 | 2.12 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #5 | 2.12 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #6 | 2.45 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #7 | 2.34 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #8 | 2.96 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #9 | 3.17 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #10 | 2.59 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #11 | 2.61 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #12 | 2.93 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #13 | 2.62 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #14 | 2.71 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #15 | 3 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #16 | 2.83 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #17 | 2.63 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #18 | 2.49 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #19 | 2.83 us | 8 KB | Accepted | Score: 5 | 显示更多 |
| Testcase #20 | 2.32 us | 8 KB | Accepted | Score: 5 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 09:35:30 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠