/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Accepted 1ms 540.0 KiB
#3 Accepted 3ms 376.0 KiB
#4 Accepted 18ms 540.0 KiB
#5 Accepted 175ms 1.277 MiB
#6 Accepted 173ms 1.27 MiB
#7 Accepted 171ms 1.168 MiB
#8 Accepted 173ms 1.336 MiB
#9 Accepted 3ms 540.0 KiB
#10 Accepted 170ms 1.148 MiB

Code

#include<bits/stdc++.h>
using namespace std;

int main() {
    int t;
    cin >> t;
    
    while (t--) {
        long long x,y,z;
        cin >> x >> y >> z;

        long long H = min(x, z);
        long long r = z- H;
        long long K = min(y,r);

        cout << (x- H) << " " << (y - K) << endl;
    }

    
}

Information

Submit By
Type
Submission
Problem
P1187 Ticket Battle: Hridoy vs Kamona
Contest
Brain Booster #9
Language
C++11 (G++ 13.2.0)
Submit At
2025-04-06 15:53:10
Judged At
2025-04-06 15:53:10
Judged By
Score
100
Total Time
175ms
Peak Memory
1.336 MiB