結果

問題 No.3028 Function Guessing
ユーザー kimiyukikimiyuki
提出日時 2017-03-31 23:40:37
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 85 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 15,408 KB
最終ジャッジ日時 2023-09-21 12:27:50
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,324 KB
testcase_01 AC 83 ms
15,128 KB
testcase_02 AC 83 ms
15,156 KB
testcase_03 AC 83 ms
15,120 KB
testcase_04 AC 84 ms
15,204 KB
testcase_05 AC 90 ms
15,260 KB
testcase_06 AC 84 ms
15,292 KB
testcase_07 AC 83 ms
15,128 KB
testcase_08 AC 82 ms
15,136 KB
testcase_09 AC 83 ms
15,292 KB
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/env ruby
def f(n)
    1200/(2**(10-n))
end
n=gets().to_i
puts(n+1?f(n):f)
0