結果

問題 No.313 π
ユーザー 小指が強い人小指が強い人
提出日時 2015-12-06 04:52:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 15,880 KB
最終ジャッジ日時 2023-10-12 16:27:34
合計ジャッジ時間 6,054 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
15,800 KB
testcase_01 AC 131 ms
15,616 KB
testcase_02 AC 125 ms
15,680 KB
testcase_03 AC 130 ms
15,528 KB
testcase_04 AC 129 ms
15,556 KB
testcase_05 AC 127 ms
15,532 KB
testcase_06 AC 129 ms
15,652 KB
testcase_07 AC 131 ms
15,784 KB
testcase_08 AC 133 ms
15,656 KB
testcase_09 AC 131 ms
15,564 KB
testcase_10 AC 134 ms
15,772 KB
testcase_11 AC 130 ms
15,764 KB
testcase_12 AC 129 ms
15,796 KB
testcase_13 AC 129 ms
15,528 KB
testcase_14 AC 126 ms
15,560 KB
testcase_15 AC 131 ms
15,812 KB
testcase_16 AC 131 ms
15,772 KB
testcase_17 AC 129 ms
15,768 KB
testcase_18 AC 130 ms
15,728 KB
testcase_19 AC 127 ms
15,640 KB
testcase_20 AC 129 ms
15,772 KB
testcase_21 AC 127 ms
15,568 KB
testcase_22 AC 127 ms
15,676 KB
testcase_23 AC 130 ms
15,632 KB
testcase_24 AC 130 ms
15,764 KB
testcase_25 AC 128 ms
15,880 KB
testcase_26 AC 126 ms
15,768 KB
testcase_27 AC 125 ms
15,556 KB
testcase_28 AC 127 ms
15,860 KB
testcase_29 AC 127 ms
15,636 KB
testcase_30 AC 128 ms
15,820 KB
testcase_31 AC 126 ms
15,660 KB
testcase_32 AC 128 ms
15,596 KB
testcase_33 AC 134 ms
15,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

pi = gets.strip
a = [20105, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]
pi.each_char do |c|
	a[c.to_i] -= 1
end
10.times do |i|
	print i, " " if a[i] == -1
end
10.times do |i|
	print i, "\n" if a[i] == 1
end
0