結果
| 問題 |
No.1232 2^x = x
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2022-03-20 14:14:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 66,192 KB |
| 最終ジャッジ日時 | 2024-10-06 20:33:53 |
| 合計ジャッジ時間 | 1,546 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 3 |
ソースコード
N = int(input())
for _ in range(N):
p = int(input())
x = 1
for i in range(10000):
x *= 2
x += i
x %= p
if x == 0:
print(i+2)
break
else:
print(-1)
ntuda