# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
90807 | EntityIT | Popeala (CEOI16_popeala) | C++14 | 1877 ms | 21140 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
const int N = 55, T = 2e4 + 5, inf = (int)2e9 + 123;
int n, t, s, points[T], lst[N][T], sum[N][T], dp[N][T];
vector<int> vec[T];
char res[N][T];
int32_t main () {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
// freopen("popeala.in", "r", stdin);
// freopen("popeala.out", "w", stdout);
cin >> n >> t >> s;
for (int j = 1; j <= t; ++j) {
cin >> points[j];
for (int i = 0; i <= n; ++i) sum[i][j] = sum[i][j - 1] + points[j] * i;
}
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= t; ++j) cin >> res[i][j];
}
for (int i = 1; i <= n; ++i) {
int last = 0;
for (int j = 1; j <= t; ++j) { if (res[i][j] == '0') last = j; lst[i][j] = last; }
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |