結果

問題 No.313 π
ユーザー syarosyaro
提出日時 2016-01-19 19:07:21
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 91 bytes
コンパイル時間 545 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2023-10-21 13:11:13
合計ジャッジ時間 7,454 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
16,372 KB
testcase_01 AC 149 ms
16,372 KB
testcase_02 AC 148 ms
16,372 KB
testcase_03 AC 149 ms
16,372 KB
testcase_04 AC 149 ms
16,372 KB
testcase_05 AC 149 ms
16,372 KB
testcase_06 AC 149 ms
16,372 KB
testcase_07 AC 150 ms
16,372 KB
testcase_08 AC 150 ms
16,372 KB
testcase_09 WA -
testcase_10 AC 151 ms
16,372 KB
testcase_11 AC 150 ms
16,372 KB
testcase_12 AC 151 ms
16,372 KB
testcase_13 AC 147 ms
16,372 KB
testcase_14 AC 150 ms
16,372 KB
testcase_15 AC 150 ms
16,364 KB
testcase_16 AC 149 ms
16,372 KB
testcase_17 WA -
testcase_18 AC 152 ms
16,372 KB
testcase_19 AC 153 ms
16,372 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 151 ms
16,360 KB
testcase_23 AC 153 ms
16,372 KB
testcase_24 WA -
testcase_25 AC 150 ms
16,372 KB
testcase_26 AC 150 ms
16,372 KB
testcase_27 WA -
testcase_28 AC 149 ms
16,372 KB
testcase_29 AC 155 ms
16,372 KB
testcase_30 AC 148 ms
16,372 KB
testcase_31 AC 151 ms
16,372 KB
testcase_32 AC 149 ms
16,372 KB
testcase_33 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=[0,1,1,2,1,0,1,0,0,2]
gets.chars{|x|a[x=x.to_i]=-~a[x]%3}
puts"#{a.index 1} #{a.index 2}"
0