結果

問題 No.4 おもりと天秤
ユーザー hogeover30hogeover30
提出日時 2017-01-04 09:03:21
言語 Ruby
(3.3.0)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 105 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,316 KB
実行使用メモリ 19,908 KB
最終ジャッジ日時 2023-09-08 17:16:31
合計ジャッジ時間 3,515 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,216 KB
testcase_01 AC 81 ms
15,136 KB
testcase_02 AC 81 ms
15,060 KB
testcase_03 AC 81 ms
15,152 KB
testcase_04 AC 80 ms
15,108 KB
testcase_05 AC 122 ms
19,432 KB
testcase_06 AC 82 ms
15,216 KB
testcase_07 AC 128 ms
19,700 KB
testcase_08 AC 85 ms
15,224 KB
testcase_09 AC 86 ms
15,344 KB
testcase_10 AC 132 ms
19,908 KB
testcase_11 AC 80 ms
15,180 KB
testcase_12 AC 80 ms
15,196 KB
testcase_13 AC 80 ms
15,216 KB
testcase_14 AC 79 ms
15,100 KB
testcase_15 AC 79 ms
15,100 KB
testcase_16 AC 80 ms
15,144 KB
testcase_17 AC 84 ms
15,224 KB
testcase_18 AC 102 ms
17,160 KB
testcase_19 AC 120 ms
19,160 KB
testcase_20 AC 120 ms
19,016 KB
testcase_21 AC 118 ms
18,948 KB
testcase_22 AC 121 ms
19,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
d={}
s=0
gets.split.map{|i|s+=i=i.to_f;d[i]=d.keys.map{|j|d[i+j]=1}}
$><<(d[s/2]?'':'im')<<:possible
0