提交记录 13772
| 提交时间 |
评测时间 |
| 2020-08-09 21:04:39 |
2020-08-09 21:04:43 |
#pragma GCC optimize("Ofast",3,"inline")
void solve(int n, int q, char *s1, char *s2, int *q_x, int *q_y, int *q_len, unsigned *ans) {
const int win[] = { 0, 1, 0, 0, 0, 1, 1, 0, 0 };
for (int i = 0; i < q; ++i) {
char *x = s1 + q_x[i];
char *y = s2 + q_y[i];
int ret = 0;
for (int j = 0; j < q_len[i]; ++j) ret += win[(*(x++) ^ 48) * 3 + (*(y++) ^ 48)];
ans[i] = ret;
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 338.48 us | 40 KB | Accepted | Score: 50 | 显示更多 |
| Testcase #2 | 3 s | 4 MB + 208 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-23 19:01:27 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠