提交记录 27782
提交时间 |
评测时间 |
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;
}
Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-02-05 21:01:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠