提交记录 31469
| 用户 | 题目 | 状态 | 得分 | 用时 | 内存 | 语言 | 代码长度 |
|---|---|---|---|---|---|---|---|
| saffah_dsh_260814 | noi18b. 【NOI2018】冒泡排序 | Wrong Answer | 0 | 10.43 ms | 12 KB | C++17 | 1021 B |
| 提交时间 | 评测时间 |
|---|---|
| 2026-08-14 02:01:44 | 2026-08-14 02:02:13 |
#include <stdint.h>
#include <sys/auxv.h>
typedef unsigned int u32; typedef unsigned long long u64;
struct DuckInfo { u64 abi_version; const char *stdin_ptr; u64 stdin_size; char *stdout_ptr; u64 stdout_limit; u64 stdout_size; char *stderr_ptr; u64 stderr_limit; u64 stderr_size; const char *IB_ptr; u64 IB_limit; char *OB_ptr; u64 OB_limit; u64 tsc_frequency; } __attribute__((packed));
static inline u32 read_u32(const char* &p){ while(*p<'0'||*p>'9')++p; u32 x=0; while(*p>='0'&&*p<='9'){x=x*10u+(u32)(*p-'0');++p;} return x; }
int main(){
DuckInfo* di=(DuckInfo*)getauxval(0x6b637564ull);
const char* p=di->stdin_ptr; char* o=di->stdout_ptr;
u32 Tn=read_u32(p);
u64 acc=0;
while(Tn--){ u32 n=read_u32(p); for(u32 i=1;i<=n;++i){ u32 qi=read_u32(p); acc+=qi; } }
// write one line to force output
char tmp[20]; int k=0; u64 x=acc; if(x==0){*o++='0';} else { while(x){tmp[k++]='0'+x%10; x/=10;} while(k--)*o++=tmp[k]; } *o++='\n';
di->stdout_size=(u64)(o-di->stdout_ptr);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 5.9 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 4.18 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 4.74 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 4.51 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 5.04 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 4.48 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 4.96 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 4.24 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 4.92 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 4.53 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #11 | 4.87 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #12 | 7.09 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #13 | 7.3 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #14 | 6.57 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #15 | 6.38 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #16 | 6.43 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #17 | 17.04 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #18 | 16.92 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #19 | 18.13 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #20 | 17.35 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #21 | 7.308 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #22 | 8.827 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #23 | 10.43 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #24 | 10.213 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #25 | 9.348 ms | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 08:25:28 | Loaded in 2 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠