結果

問題 No.557 点対称
ユーザー akko_yukkyakko_yukky
提出日時 2018-03-27 15:28:38
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 11,316 KB
実行使用メモリ 20,692 KB
最終ジャッジ日時 2023-09-07 19:01:27
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,408 KB
testcase_01 WA -
testcase_02 AC 79 ms
15,072 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 80 ms
15,640 KB
testcase_06 AC 84 ms
15,420 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 82 ms
15,848 KB
testcase_10 WA -
testcase_11 AC 80 ms
15,268 KB
testcase_12 AC 85 ms
16,188 KB
testcase_13 AC 84 ms
16,212 KB
testcase_14 AC 80 ms
15,476 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 79 ms
15,320 KB
testcase_18 AC 116 ms
20,692 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 88 ms
16,820 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 81 ms
15,132 KB
testcase_26 AC 79 ms
15,332 KB
testcase_27 AC 80 ms
15,296 KB
testcase_28 AC 80 ms
15,224 KB
testcase_29 AC 81 ms
15,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i

if n == 1
  puts 2
elsif n.even?
  puts (4 * (5 ** ((n/2) -1))) % 1000000007
else
  puts (4 * 3 * (5 ** ((n/2) -1))) % 1000000007
end
0