結果

問題 No.237 作図可能性
ユーザー finefine
提出日時 2016-01-09 01:08:49
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 11,936 KB
実行使用メモリ 16,096 KB
最終ジャッジ日時 2023-10-19 16:52:41
合計ジャッジ時間 3,841 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 87 ms
16,092 KB
testcase_02 AC 84 ms
16,092 KB
testcase_03 AC 85 ms
16,092 KB
testcase_04 AC 85 ms
16,092 KB
testcase_05 AC 85 ms
16,092 KB
testcase_06 AC 88 ms
16,092 KB
testcase_07 AC 86 ms
16,092 KB
testcase_08 AC 85 ms
16,092 KB
testcase_09 AC 87 ms
16,092 KB
testcase_10 AC 85 ms
16,088 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 84 ms
16,096 KB
testcase_14 AC 84 ms
16,092 KB
testcase_15 WA -
testcase_16 AC 84 ms
16,092 KB
testcase_17 AC 83 ms
16,092 KB
testcase_18 AC 83 ms
16,092 KB
testcase_19 AC 83 ms
16,092 KB
testcase_20 WA -
testcase_21 AC 84 ms
16,092 KB
testcase_22 AC 84 ms
16,092 KB
testcase_23 AC 87 ms
16,092 KB
testcase_24 WA -
testcase_25 AC 87 ms
16,092 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 85 ms
16,092 KB
testcase_29 AC 84 ms
16,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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)
0