結果
問題 | No.1232 2^x = x |
ユーザー | brthyyjp |
提出日時 | 2020-09-23 01:08:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 86,856 KB |
実行使用メモリ | 76,908 KB |
最終ジャッジ日時 | 2023-09-09 08:56:03 |
合計ジャッジ時間 | 1,519 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,020 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
n = int(input()) d = {} temp = 1 for y in range(10**3): temp *= 2 d[temp-y] = y if temp > 10**9: break #print(d) for i in range(n): p = int(input()) if p in d: print(p+d[p]) continue for k, v in d.items(): if k%p == v: print(v) break else: print(-1)