提交记录 53101


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

#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);
  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;
}


//pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

CompilationN/AN/ACompile OKScore: N/A

Testcase #192.3 us1 MB + 196 KBWrong AnswerScore: 0

Testcase #2455.17 us1 MB + 312 KBWrong AnswerScore: 0

Testcase #3777.43 us1 MB + 416 KBWrong AnswerScore: 0

Testcase #4904.85 us1 MB + 456 KBWrong AnswerScore: 0


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