結果
| 問題 | No.1409 Simple Math in yukicoder |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-26 23:05:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 210 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 87,168 KB |
| 最終ジャッジ日時 | 2026-04-19 01:00:51 |
| 合計ジャッジ時間 | 38,476 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 35 TLE * 1 -- * 22 |
ソースコード
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 = [i for i in range(1,p+1) if pow(i,x,p)==1] print(*ans)