提交记录 13771


用户 题目 状态 得分 用时 内存 语言 代码长度
return20071007 wc2017b2. 【WC2017】挑战-任务2 Time Limit Exceeded 50 3 s 4304 KB C++ 383 B
提交时间 评测时间
2020-08-09 21:04:07 2020-08-09 21:04:12
void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, unsigned *ans) {
    const int win[] = { 0, 1, 0, 0, 0, 1, 1, 0, 0 };
    for (int i = 0; i < q; ++i) {
        char *x = s1 + q_x[i];
        char *y = s2 + q_y[i];
        int ret = 0;
        for (int j = 0; j < q_len[i]; ++j) ret += win[(*(x++) ^ 48) * 3 + (*(y++) ^ 48)];
        ans[i] = ret;
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1343.7 us40 KBAcceptedScore: 50

Testcase #23 s4 MB + 208 KBTime Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-23 19:01:27 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠