結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2015-12-06 00:20:19 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 97 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 44 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-14 14:54:51 |
合計ジャッジ時間 | 4,432 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
コンパイルメッセージ
Syntax OK
ソースコード
counts = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]input = getsbefore = nilafter = nil(0..9).each{|n|case counts[n] - input.count(n.to_s)when -1before = nwhen 1after = nend}puts "#{before} #{after}"