結果

問題 No.313 π
ユーザー cielciel
提出日時 2015-12-07 00:54:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 15,880 KB
最終ジャッジ日時 2023-10-12 18:44:06
合計ジャッジ時間 6,834 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
15,760 KB
testcase_01 AC 140 ms
15,828 KB
testcase_02 AC 144 ms
15,640 KB
testcase_03 AC 141 ms
15,564 KB
testcase_04 AC 139 ms
15,664 KB
testcase_05 AC 140 ms
15,672 KB
testcase_06 AC 141 ms
15,672 KB
testcase_07 AC 141 ms
15,544 KB
testcase_08 AC 139 ms
15,828 KB
testcase_09 AC 139 ms
15,544 KB
testcase_10 AC 140 ms
15,768 KB
testcase_11 AC 140 ms
15,880 KB
testcase_12 AC 139 ms
15,668 KB
testcase_13 AC 140 ms
15,680 KB
testcase_14 AC 140 ms
15,584 KB
testcase_15 AC 140 ms
15,544 KB
testcase_16 AC 141 ms
15,756 KB
testcase_17 AC 142 ms
15,732 KB
testcase_18 AC 144 ms
15,652 KB
testcase_19 AC 141 ms
15,648 KB
testcase_20 AC 139 ms
15,764 KB
testcase_21 AC 140 ms
15,700 KB
testcase_22 AC 140 ms
15,560 KB
testcase_23 AC 142 ms
15,556 KB
testcase_24 AC 140 ms
15,752 KB
testcase_25 AC 140 ms
15,560 KB
testcase_26 AC 141 ms
15,828 KB
testcase_27 AC 142 ms
15,672 KB
testcase_28 AC 142 ms
15,696 KB
testcase_29 AC 144 ms
15,764 KB
testcase_30 AC 148 ms
15,652 KB
testcase_31 AC 139 ms
15,540 KB
testcase_32 AC 141 ms
15,840 KB
testcase_33 AC 141 ms
15,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

g={"0"=>20104,"1"=>20063,"2"=>19892,"3"=>20011,"4"=>19874,"5"=>20199,"6"=>19898,"7"=>20163,"8"=>19956,"9"=>19841}
h=Hash.new(0);gets.chomp.each_char{|c|h[c]+=1}
puts ('0'..'9').minmax_by{|i|g[i]-h[i]}*' '
0