QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
Tip: Click on the bar to expand more detailed information
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'