結果
| 問題 |
No.1255 ハイレーツ・オブ・ボリビアン
|
| コンテスト | |
| ユーザー |
emthrm
|
| 提出日時 | 2020-10-09 22:39:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 62,080 KB |
| 最終ジャッジ日時 | 2024-07-20 13:03:55 |
| 合計ジャッジ時間 | 4,229 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 TLE * 1 -- * 7 |
ソースコード
# https://joho-ka.mints.ne.jp/primitive-root-and-order
def n_order(i, n):
k = 1
l = i
while l != 1:
l = (l * i) % n
k += 1
return k
t = int(input())
for tc in range(t):
n = int(input())
print(1 if n == 1 else n_order(2, (n - 1) * 2 + 1))
emthrm