QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#608386 | #5465. Maximum GCD | HTensor# | WA | 0ms | 3608kb | C++23 | 721b | 2024-10-03 21:23:38 | 2024-10-03 21:23:39 |
Judging History
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'