結果

問題 No.822 Bitwise AND
ユーザー pluto77pluto77
提出日時 2019-05-23 12:37:44
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 177 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 1,660 ms
コンパイル使用メモリ 77,444 KB
実行使用メモリ 78,952 KB
最終ジャッジ日時 2023-09-08 01:13:55
合計ジャッジ時間 4,302 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 177 ms
78,952 KB
testcase_01 AC 73 ms
76,368 KB
testcase_02 AC 72 ms
76,496 KB
testcase_03 AC 73 ms
76,248 KB
testcase_04 AC 161 ms
78,904 KB
testcase_05 AC 109 ms
78,740 KB
testcase_06 AC 132 ms
78,604 KB
testcase_07 AC 160 ms
78,908 KB
testcase_08 AC 76 ms
78,116 KB
testcase_09 AC 76 ms
77,924 KB
testcase_10 AC 73 ms
76,248 KB
testcase_11 AC 72 ms
76,128 KB
testcase_12 AC 76 ms
77,768 KB
testcase_13 AC 75 ms
77,764 KB
testcase_14 AC 74 ms
76,160 KB
testcase_15 AC 123 ms
78,564 KB
testcase_16 AC 73 ms
76,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki822
import sys

n,k=map(int,raw_input().split())
if n<k:
 print 'INF'
 sys.exit()
res=0
for i in xrange(n,n*2+1):
 for j in xrange(k+1):
  if i&(i+j)==n:
   res+=1
print res
0