提交记录 53100


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 wc2017b3. 【WC2017】挑战-任务3 Wrong Answer 0 3.101 ms 37480 KB C++17 1.01 KB
提交时间 评测时间
2026-09-19 18:22:23 2026-09-19 18:22:26

#include <sys/auxv.h>
#include <cstdio>
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];
int gN, gQ, gF, gMinBal;

__attribute__((destructor)) static void duckdump(){
  fflush(0);
  DI* di=(DI*)getauxval(0x6b637564);
  u64 v = (300+((gQ/16)<9000?(gQ/16):9000));
  volatile char* p=pad; for(u64 i=0;i<v;i++) p[i*4096]=1;
}
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;
}


//ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

CompilationN/AN/ACompile OKScore: N/A

Testcase #1109.93 us1 MB + 444 KBWrong AnswerScore: 0

Testcase #22.286 ms30 MB + 612 KBWrong AnswerScore: 0

Testcase #32.973 ms36 MB + 576 KBWrong AnswerScore: 0

Testcase #43.101 ms36 MB + 616 KBWrong AnswerScore: 0


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