提交记录 21544


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

using namespace std;

void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, unsigned *ans) {
  fill(ans, ans + n, 0);
  for (int i = 0; i < n; ++i) {
    s1[i] -= '0';
    s2[i] -= '0';
    s2[i] = (s2[i] + 2) % 3;
  }
  for (int i = 0; i < q; ++i) {
    for (int j = 0; j < q_len[i]; ++j) {
      ans[i] += s1[q_x[i] + j] == s2[q_y[i] + j];
    }
  }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1472.75 us48 KBAcceptedScore: 50

Testcase #23 s5 MB + 180 KBTime Limit ExceededScore: 0


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