QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#696879#7694. CornhuskerBackToSquare1WA 0ms3700kbC++201.1kb2024-11-01 04:52:322024-11-01 04:52:32

Judging History

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

  • [2024-11-01 04:52:32]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3700kb
  • [2024-11-01 04:52:32]
  • 提交

answer

#include <bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp> 
// #include <ext/pb_ds/tree_policy.hpp>
 
using namespace std;
// using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
 
typedef pair<ll, ll> pl;
typedef pair<ld,ld> pd;
typedef vector<ll> vl;
// typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
 
 
#define G(x) ll x; cin >> x;
#define F(i, l, r) for (ll i = l; i < (r); ++i)
#define all(a) begin(a), end(a)
#define K first
#define V second
#define OK(i,j) i >= 0 && i < n && j >= 0 && j < m
 
#define NN 2000005
#define MM 5005
#define MOD 1000000007

void solve() {
 
    ll A[5], L[5];
    for(ll i=0;i<5;i++) cin >> A[i] >> L[i];
    ll N, K;
    cin >> N >> K;
    ll sum = 0;
    for(ll i=0;i<5;i++) sum += A[i]*L[i];
    sum *= N;
    sum /= 5;
    sum /= K;
    cout << sum << '\n';

    return;
}

int main() {
    cin.tie(0)->sync_with_stdio(0);
    cout << fixed << setprecision(10);

    // G(t);
    // while(t--)
        solve();

    return 0;

}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3612kb

input:

16 32 16 32 16 32 16 32 16 32
25 85

output:

150

result:

ok single line: '150'

Test #2:

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

input:

14 30 15 32 15 34 14 34 16 32
27 75

output:

172

result:

ok single line: '172'

Test #3:

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

input:

16 24 16 34 16 40 14 30 16 35
28 95

output:

150

result:

ok single line: '150'

Test #4:

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

input:

10 20 18 36 17 31 20 44 21 23
46 91

output:

276

result:

ok single line: '276'

Test #5:

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

input:

16 38 22 40 18 25 14 34 22 29
26 87

output:

182

result:

ok single line: '182'

Test #6:

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

input:

11 48 11 48 11 22 13 50 14 37
44 87

output:

249

result:

ok single line: '249'

Test #7:

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

input:

13 29 15 32 12 42 24 20 12 45
16 75

output:

101

result:

ok single line: '101'

Test #8:

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

input:

10 21 21 41 22 30 21 39 13 37
29 75

output:

234

result:

ok single line: '234'

Test #9:

score: -100
Wrong Answer
time: 0ms
memory: 3552kb

input:

19 34 9 44 14 45 12 47 13 37
38 89

output:

232

result:

wrong answer 1st lines differ - expected: '231', found: '232'