結果

問題 No.313 π
ユーザー syarosyaro
提出日時 2016-01-16 00:23:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 15,648 KB
最終ジャッジ日時 2023-08-27 06:10:47
合計ジャッジ時間 6,253 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
15,468 KB
testcase_01 AC 121 ms
15,408 KB
testcase_02 AC 118 ms
15,476 KB
testcase_03 AC 126 ms
15,552 KB
testcase_04 AC 122 ms
15,452 KB
testcase_05 AC 121 ms
15,416 KB
testcase_06 AC 121 ms
15,492 KB
testcase_07 AC 118 ms
15,464 KB
testcase_08 AC 122 ms
15,372 KB
testcase_09 AC 120 ms
15,620 KB
testcase_10 AC 120 ms
15,376 KB
testcase_11 AC 121 ms
15,412 KB
testcase_12 AC 119 ms
15,508 KB
testcase_13 AC 123 ms
15,360 KB
testcase_14 AC 120 ms
15,424 KB
testcase_15 AC 122 ms
15,416 KB
testcase_16 AC 119 ms
15,500 KB
testcase_17 AC 123 ms
15,444 KB
testcase_18 AC 123 ms
15,548 KB
testcase_19 AC 123 ms
15,388 KB
testcase_20 AC 121 ms
15,488 KB
testcase_21 AC 123 ms
15,536 KB
testcase_22 AC 122 ms
15,644 KB
testcase_23 AC 124 ms
15,464 KB
testcase_24 AC 122 ms
15,368 KB
testcase_25 AC 119 ms
15,364 KB
testcase_26 AC 124 ms
15,536 KB
testcase_27 AC 123 ms
15,540 KB
testcase_28 AC 122 ms
15,524 KB
testcase_29 AC 120 ms
15,388 KB
testcase_30 AC 122 ms
15,608 KB
testcase_31 AC 123 ms
15,428 KB
testcase_32 AC 125 ms
15,648 KB
testcase_33 AC 125 ms
15,548 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

a=[20106,20063,19892,20011,19874,20199,19898,20163,19956,19841]
gets.chars{|x|a[x.to_i]-=1}
puts"#{a.index -1} #{a.index 1}"
0