提交记录 53087


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 wc2017b3. 【WC2017】挑战-任务3 Compile Error 0 0 ns 0 KB C++17 1.11 KB
提交时间 评测时间
2026-09-19 18:20:51 2026-09-19 18:20:54

#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));
static char pad[40<<20];
__attribute__((destructor)) static void duckdump(){
  fflush(0);
  DI* di=(DI*)getauxval(0x6b637564);
  u64 v = (300+min(gN/64,9000));
  volatile char* p=pad; for(u64 i=0;i<v;i++) p[i*4096]=1;
}
int gN, gQ, gF, gMinBal;
unsigned solve(int n, char *s) {
    gN = n; gQ = 0; gF = 0; gMinBal = 0;
    int bal = 0;
    for (int i = 0; i < n; i++) {
        if (s[i] == '?') gQ++;
        else { gF++; if (s[i] == '(') bal++; else bal--; if (bal < gMinBal) gMinBal = bal; }
    }
    return 0u;
}


//ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-11-08 12:11:06 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠