結果
問題 |
No.3276 Make Smaller Popcount
|
ユーザー |
👑 |
提出日時 | 2025-09-17 10:19:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 162 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2025-09-17 18:44:11 |
合計ジャッジ時間 | 41,369 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 TLE * 3 |
コンパイルメッセージ
Main.py:9: SyntaxWarning: invalid decimal literal print(-1 if l<0 or r<0else((1<<r)-1)<<l)
ソースコード
R=range I=input for t in R(int(I())): N=int(I());l=r=-1 for d in R(31): if N>>d&1: if l<0:l=d else:r=d-l;break print(-1 if l<0 or r<0else((1<<r)-1)<<l)