結果
問題 |
No.109 N! mod M
|
ユーザー |
|
提出日時 | 2019-05-05 09:09:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,696 KB |
最終ジャッジ日時 | 2024-06-24 01:19:02 |
合計ジャッジ時間 | 7,959 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 TLE * 1 -- * 5 |
ソースコード
def fun(): n,p = map(int, input().split()) x = 1 for i in range(1, n+1): x = x*i % p print(x) if __name__ == "__main__": for _ in range(int(input())): fun()