結果
| 問題 | No.2393 Bit Grid Connected Component |
| コンテスト | |
| ユーザー |
ripity
|
| 提出日時 | 2023-07-29 15:30:14 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 462 ms / 2,000 ms |
| + 331µs | |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-11 19:00:47 |
| 合計ジャッジ時間 | 4,181 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 20 |
ソースコード
T = int(input()) while T: T -= 1 x, y = map(int, input().split()) ans = (1<<y)-1 for i in range(y, 60+1): if (x>>i)%2 == 1: ans += 1<<i else: break print(ans)
ripity