Submission #835369

#TimeUsernameProblemLanguageResultExecution timeMemory
835369MetalPowerBliskost (COI23_bliskost)C++14
28 / 100
10 ms4720 KiB
#include <bits/stdc++.h> using namespace std; int N, Q; string s, t; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> N >> Q >> s >> t; if(Q == 0){ int pre = 0; for(int i = 0; i < N; i++){ int x = ((int) t[i] - (int) s[i] + 26) % 26; pre = (x - pre + 26) % 26; } if(pre == 0) cout << "da\n"; else cout << "ne\n"; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...