提交记录 47755
| 提交时间 |
评测时间 |
| 2026-09-13 02:22:42 |
2026-09-13 02:22:46 |
// This code is AI-generated. (AI 生成的代码)
typedef unsigned long long u64;
struct DuckInfo { u64 abi; const char *in; u64 in_size; char *out; u64 out_limit, out_size; char *err; u64 err_limit, err_size; const char *IB; u64 IB_limit; char *OB; u64 OB_limit; u64 tsc; } __attribute__((packed));
struct J { u64 a,b,r; };
#include <pthread.h>
static void *work(void *arg){ struct J*j=(struct J*)arg; j->r=j->a*j->b-j->a-j->b; return 0; }
int main(void){return 0;}
void __libc_start_main(int(*mf)(int,char**,char**),int ac,char**av){
struct DuckInfo *d=(struct DuckInfo*)((u64*)av)[29];
const char*p=d->in; u64 a=0,b=0;
while(*p<'0'||*p>'9')p++; while(*p>='0'&&*p<='9')a=a*10+(*p++-'0');
while(*p<'0'||*p>'9')p++; while(*p>='0'&&*p<='9')b=b*10+(*p++-'0');
struct J j; j.a=a; j.b=b; j.r=0;
pthread_t t;
int ok = (pthread_create(&t,0,work,&j)==0);
if(ok) pthread_join(t,0);
u64 r = ok ? j.r : 123456789ULL; /* wrong sentinel if threads fail */
char tmp[24]; int k=0; do{tmp[k++]='0'+r%10;r/=10;}while(r);
char*o=d->out; while(k)*o++=tmp[--k]; *o++='\n'; d->out_size=o-d->out;
__asm__ volatile("mov $60,%%eax; xor %%edi,%%edi; syscall" ::: "rax","rdi","memory");
__builtin_unreachable();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 3.18 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 2.75 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 2.79 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 2.65 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 2.61 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 2.62 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 3.01 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 3.4 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 3.04 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 3.2 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #11 | 3.2 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #12 | 3.33 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #13 | 3.4 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #14 | 2.97 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #15 | 3.02 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #16 | 3.16 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #17 | 3.1 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #18 | 3.1 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #19 | 2.86 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #20 | 3.13 us | 8 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-24 16:30:32 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠