提交记录 13758


用户 题目 状态 得分 用时 内存 语言 代码长度
15iq wc2017b2. 【WC2017】挑战-任务2 Time Limit Exceeded 50 3 s 5300 KB C++11 402 B
提交时间 评测时间
2020-08-06 14:23:18 2020-08-06 14:23:24
#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 #1482.29 us48 KBAcceptedScore: 50

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


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