QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#753775 | #2916. Scaling Recipe | i24 | AC ✓ | 0ms | 3724kb | C++14 | 711b | 2024-11-16 13:36:47 | 2024-11-16 13:36:47 |
Judging History
answer
// File generated on 24/11/15 21:31 by Anand
#include <bits/stdc++.h>
using namespace std;
#define fastio ios::sync_with_stdio(false); cin.tie(0)
#define rep(i, m, n) for (long long i = m; i < n; i++)
#define DEBUG(x) cout << "debug: " << x << "\n"
#define YES cout << "YES\n"
#define NO cout << "NO\n"
#define pb push_back
#define sz size
typedef long long ll;
typedef pair<ll,ll> pll;
typedef vector<ll> vec;
typedef vector<vec> vecc;
typedef vector<pll> vecp;
void SOLVE() {
ll n, x, y;
cin >> n >> x >> y;
rep(i,0,n) {
ll a;
cin >> a;
cout << (y * a) / x << "\n";
}
}
signed main() {
fastio;
SOLVE();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
2 4 10 8 12
output:
20 30
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
3 37627 38021 34571 38009 34189
output:
34933 38407 34547
result:
ok 3 lines
Test #3:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
20 1 40000 40000 1 314 5234 31149 11 271 10 999 101 103 107 109 14 15 16 17 18 19 20
output:
1600000000 40000 12560000 209360000 1245960000 440000 10840000 400000 39960000 4040000 4120000 4280000 4360000 560000 600000 640000 680000 720000 760000 800000
result:
ok 20 lines
Test #4:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
8 8109 33898 37206 36729 10017 10494 30528 20034 24804 22896
output:
155532 153538 41874 43868 127616 83748 103688 95712
result:
ok 8 lines
Test #5:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
4 508 10626 24892 37846 17526 29972
output:
520674 791637 366597 626934
result:
ok 4 lines
Test #6:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
3 642 29203 14124 35310 26322
output:
642466 1606165 1197323
result:
ok 3 lines
Test #7:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
2 722 28143 2888 28880
output:
112572 1125720
result:
ok 2 lines
Test #8:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
14 2730 33026 5265 15405 21645 26325 9555 1560 7410 9360 23400 9945 38415 23205 29835 32955
output:
63693 186361 261849 318465 115591 18872 89642 113232 283080 120309 464723 280721 360927 398671
result:
ok 14 lines
Test #9:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
9 11856 26628 6916 988 8892 35568 22724 29640 11856 37544 27664
output:
15533 2219 19971 79884 51037 66570 26628 84322 62132
result:
ok 9 lines
Test #10:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
16 3576 17390 1788 17880 19668 16092 35760 7152 10728 30396 5364 8940 28608 23244 26820 33972 14304 21456
output:
8695 86950 95645 78255 173900 34780 52170 147815 26085 43475 139120 113035 130425 165205 69560 104340
result:
ok 16 lines
Test #11:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
18 37689 15504 8868 16258 27343 5173 39167 34733 36211 33994 31038 10346 18475 19953 14780 24387 15519 17736 3695 31777
output:
3648 6688 11248 2128 16112 14288 14896 13984 12768 4256 7600 8208 6080 10032 6384 7296 1520 13072
result:
ok 18 lines