QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#189318 | #7505. Billiard | ucup-team1209# | Compile Error | / | / | C++14 | 309b | 2023-09-27 10:37:03 | 2023-09-27 10:37:04 |
Judging History
answer
#include<bits/stdc++.h>
using ll = long long;
using std::cin;
using std::cout;
const int N = 200005;
int a[N], b[N];
int main() {
std::ios::sync_with_stdio(false), cin.tie(0);
int t; cin >> t;
for(int i = 0;i < t;++i) {
ll n, m;
cin >> n >> m;
cout << std::lcm(n, m) * 2 << '\n';
}
}
详细
answer.code: In function ‘int main()’: answer.code:13:30: error: ‘lcm’ is not a member of ‘std’ 13 | cout << std::lcm(n, m) * 2 << '\n'; | ^~~