結果

問題 No.344 ある無理数の累乗
ユーザー drao0113drao0113
提出日時 2016-02-16 00:54:17
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 11,928 KB
実行使用メモリ 16,200 KB
最終ジャッジ日時 2023-10-22 05:54:24
合計ジャッジ時間 4,696 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

MODE = "stdio"
#require 'matrix'
#include Math
line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = '12'.split("\n")
  tmp.each{|s|
    line << s.strip
  }
end


n = line[0].to_i

puts ((1+3**(1.0/2))**n).to_i%1000
0