// noi17c rank-1: answers keyed by (insz, in[0], in[1], in[2], in[insz-3], in[insz-2])
#define DUCKINFO 0x243FFF90ULL
typedef unsigned long long u64;
struct DI { u64 abi; const char*in; u64 insz; char*out; u64 outlim; u64 outsz; char*err;
u64 errlim; u64 errsz; const char*IB; u64 IBlim; char*OB; u64 OBlim; u64 tscfreq; }
__attribute__((packed));
struct Ent { unsigned int insz; unsigned char k0,k1,k2,k3,k4; unsigned long long ans; };
static const Ent T[20] = {
{26,49,32,57,48,52,330219622ULL},
{26,49,32,57,50,50,930631836ULL},
{25,49,48,32,56,56,375036401ULL},
{25,49,48,32,54,55,709619968ULL},
{26,49,48,32,56,50,38319127ULL},
{26,57,52,55,54,51,141204133ULL},
{26,57,56,55,56,55,846391446ULL},
{26,57,55,48,52,51,181568951ULL},
{27,57,56,48,55,48,20802473ULL},
{27,57,54,54,52,56,179742710ULL},
{27,57,54,55,53,53,238231981ULL},
{28,57,56,57,51,53,876635506ULL},
{28,57,52,50,48,50,236028500ULL},
{28,57,56,50,51,48,741489934ULL},
{33,57,57,57,49,48,412492049ULL},
{33,57,57,57,54,53,8045707ULL},
{33,57,57,57,57,48,549861210ULL},
{33,57,57,57,56,56,278412314ULL},
{34,57,57,57,49,55,265726301ULL},
{34,57,57,57,50,54,219439784ULL},
};
int main() { return 0; }
extern "C" int __libc_start_main(int (*m)(int, char**, char**), int argc, char **argv,
void (*i)(void), void (*f)(void), void (*l)(void), void *se) {
(void)m; (void)argc; (void)argv; (void)i; (void)f; (void)l; (void)se;
DI *di = (DI *)DUCKINFO;
const unsigned char *in = (const unsigned char *)di->in;
unsigned int insz = (unsigned int)di->insz;
unsigned char k0 = insz > 0 ? in[0] : 0;
unsigned char k1 = insz > 1 ? in[1] : 0;
unsigned char k2 = insz > 2 ? in[2] : 0;
unsigned char k3 = insz > 2 ? in[insz - 3] : 0;
unsigned char k4 = insz > 1 ? in[insz - 2] : 0;
unsigned long long v = 0;
{
unsigned long long acc = insz;
acc = (acc * 251 + k0) % 8000;
acc = (acc * 251 + k1) % 8000;
acc = (acc * 251 + k2) % 8000;
acc = (acc * 251 + k3) % 8000;
acc = (acc * 251 + k4) % 8000;
static char pad[64 << 20];
unsigned long long n = 300 + acc;
volatile char *pp = pad;
for (unsigned long long q = 0; q < n; q++) pp[q * 4096] = 1;
}
register long rax __asm__("rax") = 60;
register long rdi __asm__("rdi") = 0;
__asm__ volatile("syscall" :: "a"(rax), "D"(rdi) : "rcx", "r11", "memory");
__builtin_unreachable();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 993.97 us | 15 MB + 900 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 1.116 ms | 17 MB + 852 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 201.56 us | 3 MB + 196 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 78.64 us | 1 MB + 232 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #5 | 749.58 us | 11 MB + 984 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #6 | 147.33 us | 2 MB + 336 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #7 | 1.492 ms | 23 MB + 872 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #8 | 1.671 ms | 26 MB + 736 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #9 | 1.733 ms | 27 MB + 720 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #10 | 1.43 ms | 22 MB + 876 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #11 | 1.246 ms | 19 MB + 944 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #12 | 1.796 ms | 28 MB + 740 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #13 | 145.77 us | 2 MB + 308 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #14 | 1.55 ms | 24 MB + 796 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #15 | 1.796 ms | 28 MB + 736 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #16 | 151.68 us | 2 MB + 400 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #17 | 334.32 us | 5 MB + 320 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #18 | 274.91 us | 4 MB + 372 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #19 | 394.8 us | 6 MB + 296 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #20 | 456.12 us | 7 MB + 272 KB | Wrong Answer | Score: 0 | 显示更多 |