結果

問題 No.178 美しいWhitespace (1)
ユーザー simansiman
提出日時 2015-11-06 01:15:01
言語 Ruby
(3.2.2)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 77 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 16,112 KB
最終ジャッジ日時 2023-08-27 00:07:42
合計ジャッジ時間 3,409 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,088 KB
testcase_01 AC 80 ms
15,244 KB
testcase_02 AC 80 ms
15,052 KB
testcase_03 AC 80 ms
15,276 KB
testcase_04 AC 88 ms
16,088 KB
testcase_05 AC 88 ms
15,868 KB
testcase_06 AC 89 ms
15,952 KB
testcase_07 AC 90 ms
15,920 KB
testcase_08 AC 88 ms
16,040 KB
testcase_09 AC 89 ms
15,868 KB
testcase_10 AC 91 ms
16,112 KB
testcase_11 AC 89 ms
16,092 KB
testcase_12 AC 89 ms
15,964 KB
testcase_13 AC 91 ms
15,968 KB
testcase_14 AC 91 ms
16,016 KB
testcase_15 AC 89 ms
16,080 KB
testcase_16 AC 90 ms
15,920 KB
testcase_17 AC 89 ms
16,032 KB
testcase_18 AC 91 ms
15,796 KB
testcase_19 AC 90 ms
15,864 KB
testcase_20 AC 90 ms
15,980 KB
testcase_21 AC 89 ms
15,864 KB
testcase_22 AC 90 ms
15,664 KB
testcase_23 AC 91 ms
16,052 KB
testcase_24 AC 87 ms
15,948 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
l=$<.map{|i|eval i.split*'+4*'}
s=0;p l.any?{|j|s+=l.max-j;s%2>0}?-1:s/2
0