提交记录 27779


用户 题目 状态 得分 用时 内存 语言 代码长度
Izumi_Sagiri wc2017b2. 【WC2017】挑战-任务2 Time Limit Exceeded 50 3 s 4400 KB C++17 568 B
提交时间 评测时间
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;
        }
    }

CompilationN/AN/ACompile OKScore: N/A

Testcase #1271.35 us40 KBAcceptedScore: 50

Testcase #23 s4 MB + 304 KBTime Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2025-02-05 21:04:11 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠