結果

問題 No.1367 文字列門松
ユーザー masashi0217masashi0217
提出日時 2021-03-28 06:26:11
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 15,368 KB
最終ジャッジ日時 2023-08-19 15:03:01
合計ジャッジ時間 4,827 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,296 KB
testcase_01 AC 75 ms
15,120 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 77 ms
15,088 KB
testcase_06 AC 76 ms
15,236 KB
testcase_07 AC 76 ms
15,120 KB
testcase_08 AC 77 ms
15,092 KB
testcase_09 AC 76 ms
15,116 KB
testcase_10 AC 77 ms
15,272 KB
testcase_11 AC 76 ms
14,968 KB
testcase_12 AC 77 ms
15,080 KB
testcase_13 AC 76 ms
14,956 KB
testcase_14 AC 77 ms
15,092 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 77 ms
15,220 KB
testcase_25 AC 75 ms
15,144 KB
testcase_26 AC 75 ms
15,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp.split("")
hash = Hash.new(0)
arr = "kadomatsu".split("")
arr.each do |i|
    hash[i] += 1
end
ok = true
s.each do |j|
    if hash[j] == 0
        ok = false
    end
end
if ok
    puts "Yes"
else
    puts "No"
end
0