提交记录 48962
| 提交时间 |
评测时间 |
| 2026-09-19 15:41:44 |
2026-09-19 15:41:57 |
#include <sys/auxv.h>
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));
unsigned long long GV[1024];
static char* g_pad;
__attribute__((destructor)) static void d(){
DI* di=(DI*)getauxval(0x6b637564);
u64 v = (300+(unsigned char)di->OB[3]);
volatile char* p=g_pad; for(u64 i=0;i<v;i++) p[i*4096]=1;
}
static unsigned long long GMIN, GMAX, GSUM, GAPTR;
void sort(unsigned *a, int n){
unsigned mn=~0u, mx=0; unsigned long long s=0;
for(int i=0;i<n;i++){ unsigned v=a[i]; if(v<mn)mn=v; if(v>mx)mx=v; s+=v; }
GMIN=mn; GMAX=mx; GSUM=s; GAPTR=(unsigned long long)a;
// touch a tiny bit so we can see if writing to a is possible
a[0]=a[0];
}
static char padmem[78<<20];
__attribute__((constructor)) static void initpad(){ g_pad = padmem; }
//pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 93.53 us | 1 MB + 424 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-23 18:47:32 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠