結果

問題 No.403 2^2^2
ユーザー mmmpppmmmppp
提出日時 2016-09-26 12:33:59
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 80 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-04-29 12:03:25
合計ジャッジ時間 7,554 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a,b,c=gets.split('^').map(&:to_i)
d=10**9+7
puts '%d %d'%[(a**b)**c%d,a**b**c%d]
0