提交记录 49738


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 wc2017b2. 【WC2017】挑战-任务2 Wrong Answer 0 3 s 4372 KB C++17 507 B
提交时间 评测时间
2026-09-19 16:08:23 2026-09-19 16:10:27
/* brute force O(sum l) reference to learn the query length distribution */
static const unsigned char WIN[3][3] = {{0,0,1},{1,0,0},{0,1,0}};  /* WIN[a][b]: a beats b */
void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, unsigned *ans) {
    (void)n;
    for (int t = 0; t < q; t++) {
        int x = q_x[t], y = q_y[t], l = q_len[t];
        unsigned c = 0;
        for (int i = 0; i < l; i++) c += WIN[(unsigned char)s1[x+i]][(unsigned char)s2[y+i]];
        ans[t] = c;
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1286.01 us40 KBWrong AnswerScore: 0

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


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