結果

問題 No.279 木の数え上げ
ユーザー cielciel
提出日時 2020-02-08 21:43:35
言語 Crystal
(1.11.2)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 20,658 ms
コンパイル使用メモリ 255,800 KB
実行使用メモリ 6,372 KB
最終ジャッジ日時 2023-09-13 10:19:20
合計ジャッジ時間 20,327 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,520 KB
testcase_01 AC 2 ms
4,476 KB
testcase_02 AC 2 ms
4,456 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 3 ms
4,416 KB
testcase_05 AC 2 ms
4,464 KB
testcase_06 AC 3 ms
4,552 KB
testcase_07 AC 3 ms
4,456 KB
testcase_08 AC 2 ms
4,440 KB
testcase_09 AC 3 ms
4,456 KB
testcase_10 AC 32 ms
6,276 KB
testcase_11 AC 9 ms
4,820 KB
testcase_12 AC 23 ms
6,372 KB
testcase_13 AC 6 ms
4,652 KB
testcase_14 AC 33 ms
6,204 KB
testcase_15 AC 29 ms
6,368 KB
testcase_16 AC 25 ms
6,184 KB
testcase_17 AC 28 ms
6,196 KB
testcase_18 AC 18 ms
5,452 KB
testcase_19 AC 28 ms
6,260 KB
testcase_20 AC 32 ms
6,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

h=Hash(Char,Int32).new(0)
gets.not_nil!.each_char{|c|h[c]+=1}
p [h['t'],h['r'],h['e'] // 2].min
0