Submission #16906
ソースコード
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 | n,m= gets .chomp.split( " " ).map{|e| e.to_i} reg=/helloworld/ ok= false arr=[] n.times{ str= gets .chomp if str[reg]!=nil then ok= true end if str.reverse[reg]!=nil then ok= true end arr<<str } m.times{|c| str= "" n.times{|r| if arr.size<=r then next end if arr[r].size<=c then next end str<<arr[r][c] } if str[reg]!=nil then ok= true end if str.reverse[reg]!=nil then ok= true end } if ok== true then puts "Homono is Criminal" else puts "NA" end |
ステータス
項目 | データ |
---|---|
問題 | 0055 - Hello world Extreme |
ユーザー名 | sinapusu2002 |
投稿日時 | 2017-05-09 13:42:53 |
言語 | Ruby |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 517 Byte |
最大実行時間 | 26 ms |
最大メモリ使用量 | 2336 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
sample1_in.txt | AC | 16 ms | 2140 KB |
1
|
sample2_in.txt | AC | 26 ms | 2180 KB |
1
|
sample3_in.txt | AC | 16 ms | 2224 KB |
1
|
sample4_in.txt | AC | 15 ms | 2336 KB |
1
|
sample5_in.txt | AC | 16 ms | 2200 KB |
1
|