結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2016-01-30 00:11:40 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-08 02:54:59 |
合計ジャッジ時間 | 4,157 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
コンパイルメッセージ
Syntax OK
ソースコード
a, b = gets.split.map(&:to_i)ans = nilfor x in 0..200 dofor y in 0..200 donext if x == 0 && y == 0next unless ((100 * x).to_f / (x + y)).round == anext unless ((100 * y).to_f / (x + y)).round == bans = x + y if !ans || x + y < ansendendputs ans