結果
| 問題 |
No.1255 ハイレーツ・オブ・ボリビアン
|
| コンテスト | |
| ユーザー |
emthrm
|
| 提出日時 | 2020-10-09 22:38:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2024-07-20 13:03:39 |
| 合計ジャッジ時間 | 4,553 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