답안 #1015910

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1015910 2024-07-07T04:35:21 Z isaachew Bliskost (COI23_bliskost) C++17
57 / 100
1000 ms 14140 KB
#include <bits/stdc++.h>

int main(){
    int n,q;
    std::cin>>n>>q;
    std::string st1,st2;
    std::cin>>st1>>st2;
    int taltsum=0;
    for(int i=0;i<n;i++){
        taltsum+=i%2?-st1[i]:st1[i];
        taltsum-=i%2?-st2[i]:st2[i];
    }
    std::cout<<(taltsum%26==0?"da\n":"ne\n");
    for(int i=0;i<q;i++){
        int a;
        char c;
        std::cin>>a>>c;
        a--;
        taltsum-=a%2?-st1[a]:st1[a];
        st1[a]=c;
        taltsum+=a%2?-c:c;
        std::cout<<(taltsum%26==0?"da\n":"ne\n");
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 29 ms 6248 KB Output is correct
32 Correct 24 ms 6068 KB Output is correct
33 Correct 34 ms 6216 KB Output is correct
34 Correct 24 ms 6048 KB Output is correct
35 Correct 24 ms 6224 KB Output is correct
36 Correct 24 ms 6224 KB Output is correct
37 Correct 24 ms 6216 KB Output is correct
38 Correct 27 ms 6224 KB Output is correct
39 Correct 23 ms 6060 KB Output is correct
40 Correct 27 ms 6208 KB Output is correct
41 Correct 25 ms 6224 KB Output is correct
42 Correct 25 ms 6224 KB Output is correct
43 Correct 24 ms 6280 KB Output is correct
44 Correct 24 ms 6232 KB Output is correct
45 Correct 23 ms 6224 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
16 Correct 105 ms 1096 KB Output is correct
17 Correct 102 ms 1104 KB Output is correct
18 Correct 100 ms 992 KB Output is correct
19 Correct 130 ms 892 KB Output is correct
20 Correct 114 ms 1060 KB Output is correct
21 Correct 108 ms 996 KB Output is correct
22 Correct 113 ms 992 KB Output is correct
23 Correct 156 ms 1108 KB Output is correct
24 Correct 116 ms 1072 KB Output is correct
25 Correct 151 ms 1108 KB Output is correct
26 Correct 107 ms 1044 KB Output is correct
27 Correct 118 ms 1104 KB Output is correct
28 Correct 106 ms 1104 KB Output is correct
29 Correct 124 ms 912 KB Output is correct
30 Correct 145 ms 1072 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 105 ms 1096 KB Output is correct
32 Correct 102 ms 1104 KB Output is correct
33 Correct 100 ms 992 KB Output is correct
34 Correct 130 ms 892 KB Output is correct
35 Correct 114 ms 1060 KB Output is correct
36 Correct 108 ms 996 KB Output is correct
37 Correct 113 ms 992 KB Output is correct
38 Correct 156 ms 1108 KB Output is correct
39 Correct 116 ms 1072 KB Output is correct
40 Correct 151 ms 1108 KB Output is correct
41 Correct 107 ms 1044 KB Output is correct
42 Correct 118 ms 1104 KB Output is correct
43 Correct 106 ms 1104 KB Output is correct
44 Correct 124 ms 912 KB Output is correct
45 Correct 145 ms 1072 KB Output is correct
46 Correct 119 ms 1104 KB Output is correct
47 Correct 118 ms 1108 KB Output is correct
48 Correct 109 ms 1136 KB Output is correct
49 Correct 109 ms 1104 KB Output is correct
50 Correct 127 ms 1208 KB Output is correct
51 Correct 111 ms 1104 KB Output is correct
52 Correct 112 ms 1144 KB Output is correct
53 Correct 112 ms 1224 KB Output is correct
54 Correct 109 ms 1104 KB Output is correct
55 Correct 116 ms 1156 KB Output is correct
56 Correct 113 ms 1104 KB Output is correct
57 Correct 121 ms 1136 KB Output is correct
58 Correct 115 ms 1104 KB Output is correct
59 Correct 122 ms 1064 KB Output is correct
60 Correct 119 ms 1108 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 440 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 436 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 436 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 432 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 29 ms 6248 KB Output is correct
32 Correct 24 ms 6068 KB Output is correct
33 Correct 34 ms 6216 KB Output is correct
34 Correct 24 ms 6048 KB Output is correct
35 Correct 24 ms 6224 KB Output is correct
36 Correct 24 ms 6224 KB Output is correct
37 Correct 24 ms 6216 KB Output is correct
38 Correct 27 ms 6224 KB Output is correct
39 Correct 23 ms 6060 KB Output is correct
40 Correct 27 ms 6208 KB Output is correct
41 Correct 25 ms 6224 KB Output is correct
42 Correct 25 ms 6224 KB Output is correct
43 Correct 24 ms 6280 KB Output is correct
44 Correct 24 ms 6232 KB Output is correct
45 Correct 23 ms 6224 KB Output is correct
46 Correct 105 ms 1096 KB Output is correct
47 Correct 102 ms 1104 KB Output is correct
48 Correct 100 ms 992 KB Output is correct
49 Correct 130 ms 892 KB Output is correct
50 Correct 114 ms 1060 KB Output is correct
51 Correct 108 ms 996 KB Output is correct
52 Correct 113 ms 992 KB Output is correct
53 Correct 156 ms 1108 KB Output is correct
54 Correct 116 ms 1072 KB Output is correct
55 Correct 151 ms 1108 KB Output is correct
56 Correct 107 ms 1044 KB Output is correct
57 Correct 118 ms 1104 KB Output is correct
58 Correct 106 ms 1104 KB Output is correct
59 Correct 124 ms 912 KB Output is correct
60 Correct 145 ms 1072 KB Output is correct
61 Correct 119 ms 1104 KB Output is correct
62 Correct 118 ms 1108 KB Output is correct
63 Correct 109 ms 1136 KB Output is correct
64 Correct 109 ms 1104 KB Output is correct
65 Correct 127 ms 1208 KB Output is correct
66 Correct 111 ms 1104 KB Output is correct
67 Correct 112 ms 1144 KB Output is correct
68 Correct 112 ms 1224 KB Output is correct
69 Correct 109 ms 1104 KB Output is correct
70 Correct 116 ms 1156 KB Output is correct
71 Correct 113 ms 1104 KB Output is correct
72 Correct 121 ms 1136 KB Output is correct
73 Correct 115 ms 1104 KB Output is correct
74 Correct 122 ms 1064 KB Output is correct
75 Correct 119 ms 1108 KB Output is correct
76 Execution timed out 1022 ms 14140 KB Time limit exceeded
77 Halted 0 ms 0 KB -