提交记录 27779
提交时间 |
评测时间 |
2025-01-21 00:24:01 |
2025-01-21 00:24:07 |
typedef unsigned u32;
void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, u32 *anss)
{
constexpr int map[3][3] = {
{0, 1, 0},
{0, 0, 1},
{1, 0, 0}};
for(int i = 0; i < n; i++)
s1[i] &= 3,
s2[i] &= 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 += map[s1[x + j]][s2[y + j]];
anss[i] = ans;
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 271.35 us | 40 KB | Accepted | Score: 50 | 显示更多 |
Testcase #2 | 3 s | 4 MB + 304 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-02-05 21:04:11 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠