結果
問題 | No.822 Bitwise AND |
ユーザー |
![]() |
提出日時 | 2024-04-07 17:34:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 864 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 75,956 KB |
最終ジャッジ日時 | 2024-10-01 04:35:46 |
合計ジャッジ時間 | 6,033 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
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)