QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#858466#2916. Scaling RecipeTeapot#AC ✓1ms3712kbC++201.2kb2025-01-16 17:31:502025-01-16 17:31:53

Judging History

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

  • [2025-01-16 17:31:53]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3712kb
  • [2025-01-16 17:31:50]
  • 提交

answer

/** gnu specific **/
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
/** contains everything I need in std **/
#include <bits/stdc++.h>

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(S) ((int)S.size())
#define FOR(i, st_, n) for(int i = st_; i < n; ++i)
#define RFOR(i, n, end_) for(int i = (n)-1; i >= end_; --i)
#define x first
#define y second
#define pb push_back
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ull, ull> pull;
using namespace __gnu_pbds;
typedef tree<ll, null_type, less<>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
using namespace std;
#ifdef ONPC
mt19937 rnd(228);
#else
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
#endif


int32_t main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll n,x,y;
    cin >> n >> x >> y;
    FOR(i,0,n)
    {
        ll a;
        cin >> a;
        cout << (a*y)/x << endl;
    }
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3712kb

input:

2 4 10
8
12

output:

20
30

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

3 37627 38021
34571
38009
34189

output:

34933
38407
34547

result:

ok 3 lines

Test #3:

score: 0
Accepted
time: 1ms
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: 3584kb

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: 3712kb

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: 3584kb

input:

3 642 29203
14124
35310
26322

output:

642466
1606165
1197323

result:

ok 3 lines

Test #7:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

2 722 28143
2888
28880

output:

112572
1125720

result:

ok 2 lines

Test #8:

score: 0
Accepted
time: 0ms
memory: 3712kb

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: 3584kb

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: 3712kb

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: 3584kb

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