結果
| 問題 |
No.251 大きな桁の復習問題(1)
|
| コンテスト | |
| ユーザー |
terune
|
| 提出日時 | 2016-09-09 23:04:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-11-16 10:53:46 |
| 合計ジャッジ時間 | 1,833 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | AC * 1 WA * 2 RE * 18 |
ソースコード
def calc(n,m):
num = 129402307
if m <= 1 :
return n%num
else :
return calc((n%num)*n,m-1)
def solve():
N = int(input())
M = int(input())
print(calc(N,M))
solve()
terune