/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 324.0 KiB
#2 Accepted 1ms 324.0 KiB
#3 Accepted 4ms 636.0 KiB
#4 Accepted 27ms 1.242 MiB
#5 Accepted 31ms 2.094 MiB
#6 Accepted 31ms 2.02 MiB

Code

/**
 *    author:  pollob18
 *    created: July 2024
**/
#include <bits/stdc++.h>
#define ll   long long int
#define yes  "YES"
#define no   "NO"
#define nl   "\n"
#define pb   push_back
#define all(a)  a.begin(),a.end()
#define allr(a) a.rbegin(),a.rend()
#define Code_By_pollob ios::sync_with_stdio(false); cin.tie(0);
using namespace std;

void solution()
{
    ll a,b;
    cin>>a>>b;
    int x=0;
    cout<<a*b-min(a,b)<<nl;
}
int main()
{
    Code_By_pollob
    int tc;
    cin>>tc;
    while(tc--)
    {
        solution();
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1075 GCD not equal LCM
Contest
Brain Booster #5
Language
C++20 (G++ 13.2.0)
Submit At
2024-09-05 15:54:16
Judged At
2024-11-11 03:02:24
Judged By
Score
100
Total Time
31ms
Peak Memory
2.094 MiB