結果

問題 No.313 π
ユーザー cympfhcympfh
提出日時 2016-03-16 11:42:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 179 ms / 5,000 ms
コード長 174 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 28,244 KB
最終ジャッジ日時 2023-08-27 01:34:55
合計ジャッジ時間 7,657 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 170 ms
28,000 KB
testcase_01 AC 169 ms
28,060 KB
testcase_02 AC 174 ms
27,988 KB
testcase_03 AC 167 ms
28,044 KB
testcase_04 AC 172 ms
28,056 KB
testcase_05 AC 168 ms
28,168 KB
testcase_06 AC 164 ms
27,956 KB
testcase_07 AC 170 ms
28,092 KB
testcase_08 AC 165 ms
27,936 KB
testcase_09 AC 171 ms
28,208 KB
testcase_10 AC 167 ms
28,244 KB
testcase_11 AC 166 ms
27,936 KB
testcase_12 AC 167 ms
27,964 KB
testcase_13 AC 168 ms
27,928 KB
testcase_14 AC 169 ms
28,116 KB
testcase_15 AC 172 ms
28,200 KB
testcase_16 AC 179 ms
28,056 KB
testcase_17 AC 166 ms
28,044 KB
testcase_18 AC 172 ms
27,924 KB
testcase_19 AC 172 ms
27,940 KB
testcase_20 AC 170 ms
27,932 KB
testcase_21 AC 173 ms
28,056 KB
testcase_22 AC 172 ms
28,212 KB
testcase_23 AC 172 ms
27,956 KB
testcase_24 AC 172 ms
28,204 KB
testcase_25 AC 172 ms
28,068 KB
testcase_26 AC 169 ms
28,188 KB
testcase_27 AC 169 ms
28,168 KB
testcase_28 AC 170 ms
28,048 KB
testcase_29 AC 168 ms
28,048 KB
testcase_30 AC 175 ms
27,984 KB
testcase_31 AC 169 ms
28,020 KB
testcase_32 AC 169 ms
28,060 KB
testcase_33 AC 170 ms
27,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=[20104,20063,19892,20011,19874,20199,19898,20163,19956,19841]
gets.chars.each{|c|
  a[c.ord-48]-=1 if c>='0'
}
puts "#{(0..9).find{|i|a[i]==-1}} #{(0..9).find{|i|a[i]==1}}"
0