結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー mmmpppmmmppp
提出日時 2017-02-25 12:53:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 38 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 15,600 KB
最終ジャッジ日時 2023-09-02 07:59:59
合計ジャッジ時間 2,322 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,408 KB
testcase_01 AC 87 ms
15,432 KB
testcase_02 AC 90 ms
15,392 KB
testcase_03 AC 84 ms
15,444 KB
testcase_04 AC 83 ms
15,600 KB
testcase_05 AC 84 ms
15,344 KB
testcase_06 AC 82 ms
15,424 KB
testcase_07 AC 82 ms
15,524 KB
testcase_08 AC 84 ms
15,420 KB
testcase_09 AC 83 ms
15,544 KB
testcase_10 AC 84 ms
15,416 KB
testcase_11 AC 85 ms
15,316 KB
testcase_12 AC 85 ms
15,444 KB
testcase_13 AC 86 ms
15,316 KB
testcase_14 AC 84 ms
15,580 KB
testcase_15 AC 83 ms
15,564 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

m=gets.to_i
a=2017
x=a+(a*a)**a;
p x%m
0