結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー wotsushiwotsushi
提出日時 2017-02-27 22:45:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 66 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 11,320 KB
実行使用メモリ 15,612 KB
最終ジャッジ日時 2023-09-02 13:24:04
合計ジャッジ時間 3,255 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,344 KB
testcase_01 AC 80 ms
15,344 KB
testcase_02 AC 80 ms
15,264 KB
testcase_03 AC 81 ms
15,372 KB
testcase_04 AC 82 ms
15,536 KB
testcase_05 AC 82 ms
15,444 KB
testcase_06 AC 83 ms
15,560 KB
testcase_07 AC 83 ms
15,384 KB
testcase_08 AC 82 ms
15,612 KB
testcase_09 AC 82 ms
15,520 KB
testcase_10 AC 82 ms
15,376 KB
testcase_11 AC 81 ms
15,272 KB
testcase_12 AC 82 ms
15,536 KB
testcase_13 AC 82 ms
15,524 KB
testcase_14 AC 81 ms
15,440 KB
testcase_15 AC 81 ms
15,512 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

X = 2017 + (2017 * 2017)**2017
M = gets.to_i
ans = X % M
puts ans
0