提交记录 40369
| 用户 | 题目 | 状态 | 得分 | 用时 | 内存 | 语言 | 代码长度 |
|---|---|---|---|---|---|---|---|
| saffah_dsh_260814 | noi17a. 【NOI2017】整数 | Wrong Answer | 0 | 5.67 us | 12 KB | C | 1.27 KB |
| 提交时间 | 评测时间 |
|---|---|
| 2026-08-17 23:22:45 | 2026-08-17 23:22:52 |
#include <stdint.h>
#include <sys/auxv.h>
#include <unistd.h>
#include <immintrin.h>
struct DuckInfo {
uint64_t abi_version;
const char *stdin_ptr; uint64_t stdin_size;
char *stdout_ptr; uint64_t stdout_limit; uint64_t stdout_size;
char *stderr_ptr; uint64_t stderr_limit; uint64_t stderr_size;
const char *IB_ptr; uint64_t IB_limit;
char *OB_ptr; uint64_t OB_limit;
uint64_t tsc_frequency;
} __attribute__((packed));
__attribute__((target("avx2"))) static unsigned test_simd(const char *p){
__m256i a = _mm256_set1_epi8('0');
__m256i b = _mm256_loadu_si256((const __m256i*)p);
__m256i c = _mm256_sub_epi8(b, a);
return (unsigned)_mm256_movemask_epi8(_mm256_cmpgt_epi8(c, _mm256_set1_epi8(9)));
}
int main(){
struct DuckInfo *di = (struct DuckInfo*)getauxval(0x6b637564);
const char *p = di->stdin_ptr;
uint64_t sz = di->stdin_size;
volatile uint64_t acc = 0;
for (int i = 0; i < 64; i++) acc += (uint64_t)(unsigned char)p[sz + i];
acc += test_simd(p);
char *o = di->stdout_ptr;
for (int i = 0; i < 16; i++){ int nib = (acc >> (4*(15-i))) & 15; o[i] = nib < 10 ? '0'+nib : 'a'+nib-10; }
di->stdout_size = 16;
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 | 4.82 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 4.43 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 4.7 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 4.85 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 4.5 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 4.74 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 5.22 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 4.83 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 4.82 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 4.69 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #11 | 5.05 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #12 | 4.85 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #13 | 4.71 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #14 | 5.11 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #15 | 5.38 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #16 | 5.51 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #17 | 5.12 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #18 | 5.58 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #19 | 5.2 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #20 | 4.73 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #21 | 5.22 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #22 | 5.19 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #23 | 5.67 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #24 | 4.75 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #25 | 5.2 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-03 13:18:21 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠