結果
問題 |
No.1809 Divide NCK
|
ユーザー |
![]() |
提出日時 | 2021-09-20 13:03:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-17 04:59:23 |
合計ジャッジ時間 | 2,557 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 39 |
ソースコード
N,K = map(int,input().split()) ans = c = 0 R = N - K while(R or K): a = R & 1 b = K & 1 if(a + b + c >= 2): ans += 1 c = 1 else: c = 0 R >>= 1 K >>= 1 print(ans)