QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#306753#7502. Painting the RoadsvavkaWA 0ms3592kbC++23362b2024-01-17 08:30:232024-01-17 08:30:23

Judging History

你现在查看的是最新测评结果

  • [2024-01-17 08:30:23]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3592kb
  • [2024-01-17 08:30:23]
  • 提交

answer

#include <bits/stdc++.h>

using i64 = long long;

void solve() {
    i64 n, m;
    std::cin >> n >> m;

    i64 ans = 2 * std::lcm(n, m);
    std::cout << ans << "\n";
}

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    int t;
    std::cin >> t;

    while (t--) {
        solve();
    }

    return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3592kb

input:

5
3 2
1 2 1 1
2 3 2 1
1 3
4 2
1 2 3 1
2 3 1 0
3 4 4 1
1 2
5 4
1 2 3 0
2 3 1 1
3 4 2 0
4 5 2 1
1 1 1 1
5 2
1 2 2 1
1 3 3 0
1 5 2 1
3 4 1 1
1 2
10 5
1 2 10 1
2 3 3 1
3 4 4 0
4 5 4 1
5 6 2 1
2 7 8 0
2 8 9 1
4 9 1 0
1 10 4 0
10 10 2 1 8

output:

12
4
2
12
4

result:

wrong answer 1st numbers differ - expected: '3', found: '12'