結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,232 KB
testcase_01 AC 80 ms
15,152 KB
testcase_02 AC 80 ms
15,056 KB
testcase_03 AC 79 ms
15,096 KB
testcase_04 AC 83 ms
15,168 KB
testcase_05 AC 126 ms
19,436 KB
testcase_06 AC 80 ms
15,056 KB
testcase_07 AC 131 ms
19,592 KB
testcase_08 AC 81 ms
15,268 KB
testcase_09 AC 81 ms
15,108 KB
testcase_10 AC 129 ms
19,936 KB
testcase_11 AC 81 ms
15,004 KB
testcase_12 AC 81 ms
15,256 KB
testcase_13 AC 82 ms
15,000 KB
testcase_14 AC 84 ms
15,136 KB
testcase_15 AC 82 ms
15,332 KB
testcase_16 AC 80 ms
15,272 KB
testcase_17 AC 80 ms
15,096 KB
testcase_18 AC 102 ms
17,208 KB
testcase_19 AC 119 ms
19,156 KB
testcase_20 AC 118 ms
18,816 KB
testcase_21 AC 118 ms
18,884 KB
testcase_22 AC 121 ms
19,024 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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