답안 #210819

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
210819 2020-03-18T11:20:45 Z SorahISA Job Scheduling (IOI19_job) C++17
5 / 100
103 ms 5240 KB
#include "job.h"
#include <bits/stdc++.h>
using namespace std;

#define int long long

int scheduling_cost(vector<int32_t> p, vector<int32_t> u, vector<int32_t> d) {
    auto f=[&](){int i=0,t=0,ans=0;for(;i<p.size();++i)ans+=(t+=d[i])*u[i];return ans;};return f();
}

Compilation message

job.cpp: In lambda function:
job.cpp:8:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     auto f=[&](){int i=0,t=0,ans=0;for(;i<p.size();++i)ans+=(t+=d[i])*u[i];return ans;};return f();
                                         ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 8 ms 256 KB Output is correct
3 Correct 5 ms 256 KB Output is correct
4 Correct 6 ms 376 KB Output is correct
5 Correct 26 ms 1528 KB Output is correct
6 Correct 49 ms 2680 KB Output is correct
7 Correct 70 ms 3832 KB Output is correct
8 Correct 91 ms 4984 KB Output is correct
9 Correct 88 ms 4984 KB Output is correct
10 Correct 100 ms 5148 KB Output is correct
11 Correct 5 ms 256 KB Output is correct
12 Correct 90 ms 5112 KB Output is correct
13 Correct 89 ms 4984 KB Output is correct
14 Correct 87 ms 5088 KB Output is correct
15 Correct 87 ms 4984 KB Output is correct
16 Correct 88 ms 4984 KB Output is correct
17 Correct 90 ms 5240 KB Output is correct
18 Correct 95 ms 4984 KB Output is correct
19 Correct 103 ms 4984 KB Output is correct
20 Correct 89 ms 4984 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 7 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 6 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 8 ms 256 KB Output is correct
3 Correct 5 ms 256 KB Output is correct
4 Correct 6 ms 376 KB Output is correct
5 Correct 26 ms 1528 KB Output is correct
6 Correct 49 ms 2680 KB Output is correct
7 Correct 70 ms 3832 KB Output is correct
8 Correct 91 ms 4984 KB Output is correct
9 Correct 88 ms 4984 KB Output is correct
10 Correct 100 ms 5148 KB Output is correct
11 Correct 5 ms 256 KB Output is correct
12 Correct 90 ms 5112 KB Output is correct
13 Correct 89 ms 4984 KB Output is correct
14 Correct 87 ms 5088 KB Output is correct
15 Correct 87 ms 4984 KB Output is correct
16 Correct 88 ms 4984 KB Output is correct
17 Correct 90 ms 5240 KB Output is correct
18 Correct 95 ms 4984 KB Output is correct
19 Correct 103 ms 4984 KB Output is correct
20 Correct 89 ms 4984 KB Output is correct
21 Incorrect 7 ms 376 KB Output isn't correct
22 Halted 0 ms 0 KB -