結果

問題 No.91 赤、緑、青の石
ユーザー letrangerjpletrangerjp
提出日時 2017-11-02 22:59:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,367 ms / 5,000 ms
コード長 79 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,376 KB
最終ジャッジ日時 2023-09-06 12:35:31
合計ジャッジ時間 16,884 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 929 ms
15,184 KB
testcase_01 AC 635 ms
15,292 KB
testcase_02 AC 427 ms
15,176 KB
testcase_03 AC 729 ms
15,128 KB
testcase_04 AC 391 ms
15,228 KB
testcase_05 AC 844 ms
15,260 KB
testcase_06 AC 288 ms
15,252 KB
testcase_07 AC 77 ms
15,092 KB
testcase_08 AC 77 ms
15,104 KB
testcase_09 AC 77 ms
15,296 KB
testcase_10 AC 81 ms
15,084 KB
testcase_11 AC 296 ms
15,352 KB
testcase_12 AC 774 ms
15,124 KB
testcase_13 AC 835 ms
15,376 KB
testcase_14 AC 582 ms
15,376 KB
testcase_15 AC 900 ms
15,288 KB
testcase_16 AC 78 ms
15,252 KB
testcase_17 AC 78 ms
15,296 KB
testcase_18 AC 77 ms
15,196 KB
testcase_19 AC 77 ms
15,284 KB
testcase_20 AC 77 ms
15,140 KB
testcase_21 AC 76 ms
15,320 KB
testcase_22 AC 78 ms
15,320 KB
testcase_23 AC 77 ms
15,008 KB
testcase_24 AC 76 ms
15,068 KB
testcase_25 AC 1,367 ms
15,176 KB
testcase_26 AC 1,284 ms
15,224 KB
testcase_27 AC 77 ms
15,280 KB
testcase_28 AC 179 ms
15,272 KB
testcase_29 AC 304 ms
15,352 KB
testcase_30 AC 922 ms
15,220 KB
testcase_31 AC 1,238 ms
15,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=gets.split.map &:to_i
while a.sort![2]-a[0]>1
  a[2]-=2
  a[0]+=1
end
p a.min
0