/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 540.0 KiB
#2 Wrong Answer 2ms 540.0 KiB
#3 Wrong Answer 2ms 564.0 KiB
#4 Wrong Answer 2ms 328.0 KiB
#5 Wrong Answer 3ms 516.0 KiB
#6 Wrong Answer 7ms 584.0 KiB
#7 Wrong Answer 51ms 1.266 MiB
#8 Wrong Answer 52ms 1.312 MiB
#9 Wrong Answer 53ms 1.336 MiB
#10 Wrong Answer 48ms 1.484 MiB
#11 Wrong Answer 49ms 1.449 MiB

Code

#include<bits/stdc++.h>

using namespace std;
#define ll long long
#define int ll
# define double long double
const int N = 2e5 + 2, MOD = 1e9 + 7;
#define deb(x) cout<<#x<<"="<<x<<endl;
#define F first
#define S second


void solve() {
    int n, k;
    cin >> n >> k;
    cout << max(0ll, k - n);


}

signed main() {
    ios_base::sync_with_stdio(false);
    cout.tie(NULL);
    cin.tie(NULL);
//#ifndef ONLINE_JUDGE
//    freopen("output.txt", "w", stdout);
//    freopen("input.txt", "r", stdin);
//#endif
    int tt = 1;
    cin >> tt;
    for (int i = 0; i < tt; i++) {
//        cout << "Case " << i + 1 << ": ";
        solve();
        cout << "\n";
    }
}

Information

Submit By
Type
Submission
Problem
P1092 Bitwise AND
Contest
Brain Booster #5
Language
C++20 (G++ 13.2.0)
Submit At
2024-09-05 16:58:29
Judged At
2024-10-03 13:05:36
Judged By
Score
1
Total Time
53ms
Peak Memory
1.484 MiB