Wrong Answer
Code
#include <bits/stdc++.h>
#define nl '\n'
#define ll long long int
#define all(v) v.begin(),v.end()
#define print(v) for(auto data : v) cout << data << " "; cout << nl
using namespace std;
void solve()
{
int n,k; cin >> n >> k;
if(n >= k) cout << 0 << nl;
else cout << k-n << nl;
}
int main()
{
ios_base::sync_with_stdio(false); cin.tie(NULL);
int t; cin >> t;
while (t--) solve();
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1092 Bitwise AND
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-01-31 13:09:47
- Judged At
- 2025-01-31 13:09:47
- Judged By
- Score
- 1
- Total Time
- 1ms
- Peak Memory
- 588.0 KiB