提交记录 21545


用户 题目 状态 得分 用时 内存 语言 代码长度
lmf_up wc2017b2. 【WC2017】挑战-任务2 Time Limit Exceeded 50 3 s 4160 KB C++17 437 B
提交时间 评测时间
2024-04-12 16:25:46 2024-04-12 16:25:52
#include<bits/stdc++.h>

void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, unsigned *ans)
{
    for (int i = 0; i < q; i++)
    {
        int x = q_x[i], y = q_y[i], len = q_len[i];
        ans[i] = 0;
        for (int t = 0; t < len; t++, x++, y++)
            ans[i] += ((s1[x] == '0' && s2[y] == '1') || (s1[x] == '1' && s2[y] == '2') ||
                       (s1[x] == '2' && s2[y] == '0'))?1:0;
    }
}


CompilationN/AN/ACompile OKScore: N/A

Testcase #1465.11 us48 KBAcceptedScore: 50

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


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-07 15:04:38 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用