結果
問題 |
No.1409 Simple Math in yukicoder
|
ユーザー |
|
提出日時 | 2021-02-26 23:03:29 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,268 KB |
実行使用メモリ | 83,240 KB |
最終ジャッジ日時 | 2024-10-02 15:52:22 |
合計ジャッジ時間 | 18,985 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 TLE * 3 -- * 42 |
ソースコード
import sys,os,io input = sys.stdin.readline #input = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline T = int(input()) for t in range(T): v, x = map(int, input().split()) p = v*x+1 ans = [] for i in range(1,p+1): if pow(i,x,p)==1: ans.append(i) print(*ans)