QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#608386#5465. Maximum GCDHTensor#WA 0ms3608kbC++23721b2024-10-03 21:23:382024-10-03 21:23:39

Judging History

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

  • [2024-10-03 21:23:39]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3608kb
  • [2024-10-03 21:23:38]
  • 提交

answer

#include <bits/stdc++.h>
#define dd(x) cout << #x << "\n"
#define d(x) cout << #x  << ": " << x << "\n"
#define SZ(x) ((int)(x).size())
using namespace std;
#define int long long
using pii = pair<int, int>;
using vpii = vector<pii>;
using vi = vector<int>;
using vii = vector<vector<int>>;
using a3 = array<int, 3>;
using ll = long long;
const int inf = 0x3f3f3f3f3f3f3f3fLL;

// #define MULTI_TEST

void solve() {
    int l, r, b, k; cin >> l >> r >> b >> k;
    int a = l;
    cout << (a + b - 1) / b * b * k << "\n";
}

signed main() {
    ios::sync_with_stdio(false); cin.tie(0);
#ifdef MULTI_TEST
    int T; cin >> T;
#else
    int T = 1;
#endif
    while(T--) solve();
    return 0;
}

详细

Test #1:

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

input:

3
3 10 7

output:

70

result:

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