結果
問題 |
No.8085 Math...?
|
ユーザー |
![]() |
提出日時 | 2021-04-01 20:40:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 82,472 KB |
実行使用メモリ | 60,148 KB |
最終ジャッジ日時 | 2024-12-21 04:38:15 |
合計ジャッジ時間 | 5,836 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 22 |
ソースコード
Q=int(input()) mod=1000000007 for i in range(Q): a,b=map(int,input().split()) this1=1 for j in range(1,a+1): this=0 for k in range(1,b+1): this+=pow(k,j,mod) this%=mod this1*=this this1%=mod print(this1)