結果
問題 | No.2393 Bit Grid Connected Component |
ユーザー | hiryuN |
提出日時 | 2023-07-28 21:57:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 448 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 81,868 KB |
実行使用メモリ | 77,172 KB |
最終ジャッジ日時 | 2024-10-06 18:41:23 |
合計ジャッジ時間 | 3,262 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 20 |
ソースコード
t=int(input()) def f(a,b): a=str(bin(a)) key=-b-1 while a[key]=="1": key-=1 key+=1 key*=-1 print(2**key-1) for i in range(t): a,b=map(int,input().split()) f(a,b)