提交记录 27782


用户 题目 状态 得分 用时 内存 语言 代码长度
Izumi_Sagiri wc2017b2. 【WC2017】挑战-任务2 Compile Error 0 0 ns 0 KB C++17 471 B
提交时间 评测时间
2025-01-21 02:09:18 2025-01-21 02:53:25
    void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, u32 *anss)
    {
        for(int i = 0; i < n; i++)
            s1[i] &= 3,
            s2[i] &= 3,
            s2[i] = (s2[i] + 2) % 3;
        for(int i = 0; i < q; i++)
        {
            int x = q_x[i], y = q_y[i], len = q_len[i];
            u32 ans = 0;
            for(int j = 0; j < len; j++)
                ans += (s1[x + j] == s2[y + j]);
            anss[i] = ans;
        }

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2025-02-05 21:01:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠