提交记录 21540


用户 题目 状态 得分 用时 内存 语言 代码长度
lmf_up wc2017b2. 【WC2017】挑战-任务2 Compile Error 0 0 ns 0 KB C++17 538 B
提交时间 评测时间
2024-04-12 16:17:50 2024-04-12 16:17: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 = 1; 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));
    }
}

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0), std::cout.tie(0);
    int T = 1;
}

CompilationN/AN/ACompile ErrorScore: N/A


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