結果
| 問題 |
No.1253 雀見椪
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-05 21:51:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 237 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 77,696 KB |
| 最終ジャッジ日時 | 2024-11-27 06:15:53 |
| 合計ジャッジ時間 | 3,050 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 14 |
ソースコード
T = int(input())
P = 10 ** 9 + 7
def calc(a,b,n):
inv = pow(b,P-2,P)
return pow(a * inv % P,n,P)
for _ in range(T):
n,a,b,c,d,e,f = map(int,input().split())
ans = calc(a,b,n) + calc(c,d,n) + calc(e,f,n)
print(ans % P)