結果
問題 | No.822 Bitwise AND |
ユーザー |
![]() |
提出日時 | 2024-04-07 17:33:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 24,376 KB |
最終ジャッジ日時 | 2024-10-01 04:35:27 |
合計ジャッジ時間 | 6,747 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 16 |
ソースコード
N,K=map(int,input().split())if N<K:ans="INF"else:ans=0for x in range(10*N+1):for y in range(x,x+K+1):if y-x<=K and x&y==N:ans+=1print(ans)