Submission #02416


ソースコード

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
28
29
30
31
32
33
34
35
36
37
38
39
40
#include<iostream>
#include<cstring>
using namespace std;
main(){
int n,m;
cin >> n >> m;
char mozi[n][m+1];
char mozi2[m+1][n];
int count=0;
for(int i=0;i<n;i++){
cin >> mozi[i];
}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
mozi2[j][i] = mozi[i][j];
}
}
for(int o=0;o<n;o++){
if(strstr(mozi[o],"helloworld")!=NULL){
count++;
}
else if(strstr(mozi[o],"dlrowolleh")!=NULL){
count++;
}
}
for(int o=0;o<n;o++){
if(strstr(mozi2[o],"helloworld")!=NULL){
count++;
}
else if(strstr(mozi2[o],"dlrowolleh")!=NULL){
count++;
}
}
if(count >= 1){
cout << "Homono is Criminal" << endl;
}
else {
cout << "NA" << endl;
}
}

ステータス

項目 データ
問題 0055 - Hello world Extreme
ユーザー名 ei1528
投稿日時 2015-12-17 15:41:31
言語 C++11
状態 Accepted
得点 1
ソースコード長 775 Byte
最大実行時間 27 ms
最大メモリ使用量 712 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
sample1_in.txt AC 25 ms 476 KB
1
sample2_in.txt AC 27 ms 712 KB
1
sample3_in.txt AC 19 ms 560 KB
1
sample4_in.txt AC 19 ms 520 KB
1
sample5_in.txt AC 27 ms 608 KB
1