結果

問題 No.178 美しいWhitespace (1)
ユーザー simansiman
提出日時 2015-11-06 01:02:38
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 83 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 16,148 KB
最終ジャッジ日時 2023-10-11 14:12:17
合計ジャッジ時間 3,484 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,232 KB
testcase_01 AC 81 ms
15,132 KB
testcase_02 AC 81 ms
15,144 KB
testcase_03 AC 82 ms
15,156 KB
testcase_04 AC 91 ms
15,856 KB
testcase_05 AC 91 ms
15,948 KB
testcase_06 AC 91 ms
16,104 KB
testcase_07 WA -
testcase_08 AC 90 ms
16,148 KB
testcase_09 AC 92 ms
15,956 KB
testcase_10 AC 91 ms
16,104 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 92 ms
15,892 KB
testcase_14 AC 93 ms
15,924 KB
testcase_15 AC 92 ms
16,120 KB
testcase_16 AC 92 ms
15,984 KB
testcase_17 AC 92 ms
15,876 KB
testcase_18 AC 92 ms
15,936 KB
testcase_19 AC 94 ms
16,108 KB
testcase_20 WA -
testcase_21 AC 92 ms
15,980 KB
testcase_22 AC 93 ms
15,908 KB
testcase_23 AC 91 ms
15,944 KB
testcase_24 AC 92 ms
15,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: `:' after local variable or literal is interpreted as binary operator
Main.rb:3: warning: even though it seems like symbol literal
Syntax OK

ソースコード

diff #

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