結果
| 問題 |
No.237 作図可能性
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-09 01:08:49 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-19 13:12:58 |
| 合計ジャッジ時間 | 4,285 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 WA * 8 |
コンパイルメッセージ
Syntax OK
ソースコード
table = []
30.times{|m|
32.times{|f|
n = (2 ** m) * (2 * f[0] + 1) * (4 * f[1] + 1) * (16 * f[2] + 1) * (256 * f[3] + 1) * (65536 * f[4] + 1)
table.push(n) if n >= 3 && n <= 1000000000
}
}
a = gets.to_i
table.push(a)
table.sort!
p table.index(a)