Submission #00084


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,y,m,ans=0;
char s[1010],k[1010];
char l[1010];
cin>>n>>x>>y;
for(int i=0;i<n;i++){
cin>>s[i];
}
m=x+y;
for(int i=0;i<n;i++){
if(i==m){
for(int j=i;j<m+i;j++){
k[j]=s[j];
}
for(int j=0;j<m;j++){
l[j]=k[m-1-j];
}
if(k==l){
ans++;
}
}
}
cout<<ans<<endl;
return(0);
}

ステータス

項目 データ
問題 0002 - 川柳 (Humorous Poem)
ユーザー名 ei1624
投稿日時 2016-12-07 18:59:54
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 429 Byte
最大実行時間 24 ms
最大メモリ使用量 720 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 22 ms 480 KB
1
2016-yo-t2-in2.txt WA 24 ms 720 KB
2
2016-yo-t2-in3.txt WA 13 ms 576 KB
3
2016-yo-t2-in4.txt WA 19 ms 560 KB
4
2016-yo-t2-in5.txt WA 20 ms 412 KB
5