Submission #00080
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,ans=0,a,i; cin >> n >> x >> y; char s[n]; cin >> s; int size=2*x+y; for ( int i=0;i+size<n;i++){ if (s[i]==s[x-i] && s[x+i]==s[x+y-i] && s[x+y+i]==s[x+y+x-i]){ ans++; } } cout << ans+1 << endl; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 川柳 (Humorous Poem) |
ユーザー名 | ei1633 |
投稿日時 | 2016-12-07 18:58:38 |
言語 | C++11 |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 318 Byte |
最大実行時間 | 23 ms |
最大メモリ使用量 | 576 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | INPUT1 | 0 / 20 | *1.txt |
2 | INPUT2 | 0 / 20 | *2.txt |
3 | INPUT3 | 0 / 20 | *3.txt |
4 | INPUT4 | 0 / 20 | *4.txt |
5 | INPUT5 | 0 / 20 | *5.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||||
---|---|---|---|---|---|---|---|---|
2016-yo-t2-in1.txt | WA | 23 ms | 480 KB |
1
|
||||
2016-yo-t2-in2.txt | WA | 15 ms | 464 KB |
2
|
||||
2016-yo-t2-in3.txt | WA | 19 ms | 576 KB |
3
|
||||
2016-yo-t2-in4.txt | WA | 18 ms | 432 KB |
4
|
||||
2016-yo-t2-in5.txt | WA | 14 ms | 540 KB |
5
|