結果

問題 No.1232 2^x = x
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2020-09-19 13:33:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,460 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-05 17:32:18
合計ジャッジ時間 975 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,752 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for _ in range(n):
    p = int(input())
    check = False
    for i in range(1,101):
        if pow(2,i,p) == i%p:
            print(i)
            check = True
            break
    if check == False:
        print(-1)
0