Gửi bài giải
Điểm:
1,50 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C, C#, C++, Java, Javascript, Kotlin, Pascal, PyPy, Python, Scratch
Link đề (bài 1):
https://www.chuyentin.pro/2022/10/e-thi-olympic-duyen-hai-bac-bo-khoi-11.html
Sample Input 1
9 5
m1i1s2y1o1u3
isyou
Sample Output 1
6
Sample Input 2
11 3
m1i1s2i1s2i1p2i1
isi
Sample Output 2
14
Bình luận
include <bits/stdc++.h>
using namespace std; using int64 = long long; const int64 MOD = 1000000007;
int64 modpow(int64 a, int64 e){ int64 r = 1; while(e){ if(e&1) r = (ra)%MOD; a = (aa)%MOD; e >>= 1; } return r; }
int main(){ ios::syncwithstdio(false); cin.tie(nullptr); long long n; int m; if(!(cin >> n >> m)) return 0; string TE, P; cin >> TE >> P;
}