結果
問題 |
No.1346 Rectangle
|
ユーザー |
![]() |
提出日時 | 2025-03-31 17:19:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 166 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 83,072 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2025-03-31 17:20:20 |
合計ジャッジ時間 | 1,949 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 16 |
ソースコード
def is_power_of_two(n): return (n & (n - 1)) == 0 and n != 0 n = int(input()) n_plus_1 = n + 1 if is_power_of_two(n_plus_1): print("INF") else: print(4)