/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 328.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 25ms 572.0 KiB
#4 Accepted 281ms 1.426 MiB
#5 Accepted 313ms 2.148 MiB
#6 Accepted 294ms 2.191 MiB

Code

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

#define ll long long
#define nl << "\n"
#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);

int main() {
	int t;
	cin >> t;
	while(t--) {
		ll a, b;
		cin >> a >> b;
		cout << (a * b) - min(a, b) nl;
	}
}

Information

Submit By
Type
Submission
Problem
P1075 GCD not equal LCM
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-02 11:03:57
Judged At
2024-11-11 02:51:41
Judged By
Score
100
Total Time
313ms
Peak Memory
2.191 MiB