結果
| 問題 |
No.4 おもりと天秤
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2016-09-28 18:15:10 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 114 bytes |
| コンパイル時間 | 47 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 25,856 KB |
| 最終ジャッジ日時 | 2024-11-21 08:14:36 |
| 合計ジャッジ時間 | 62,537 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 13 TLE * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
n,*w=gets(p).split.map &:to_i
s=w.reduce(:+)
1.upto(n){|i|w.combination(i){|c|$><<:possible if c.reduce(:+)*2==s}}
mmmppp