Submission #345295

# Submission time Handle Problem Language Result Execution time Memory
345295 2021-01-07T07:13:02 Z l3nl3 UFO (IZhO14_ufo) C++14
0 / 100
171 ms 71148 KB
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>  
 
#define exit exit(false)
 
//#define here() cerr << "herewego\n";
#define show(x) cerr << #x << ": " << x << '\n';
 
#define int long long
//#define double long double
 
#define all(a) a.begin(), a.end()
#define whole(a, p, q) a+p, a+p+q
 
#define ioio() ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
 
using namespace std;
 
//using namespace __gnu_pbds;   
//typedef tree <int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;  

const int mxsz = 1e4 + 7;

int n, m, r, k , p, a[mxsz][mxsz];
char tp;
int x, y, sum;

signed main () { ioio();
	cin >> n >> m >> r >> k >> p;
	for (int i = 1; i <= n; i++) {
		for (int j = 1; j <= m; j++) {
			cin >> a[i][j];
			sum += a[i][j];
		}
	}
	while (k--) {
		cin >> tp >> x >> y;
		
	} cout << sum - (rand() % min (100LL, sum));
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Incorrect 1 ms 364 KB Output isn't correct
3 Incorrect 1 ms 620 KB Output isn't correct
4 Incorrect 3 ms 876 KB Output isn't correct
5 Incorrect 15 ms 832 KB Output isn't correct
6 Incorrect 73 ms 7020 KB Output isn't correct
7 Incorrect 121 ms 1772 KB Output isn't correct
8 Incorrect 108 ms 2008 KB Output isn't correct
9 Incorrect 115 ms 2248 KB Output isn't correct
10 Incorrect 108 ms 2056 KB Output isn't correct
11 Incorrect 85 ms 1784 KB Output isn't correct
12 Incorrect 108 ms 1900 KB Output isn't correct
13 Runtime error 170 ms 71148 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Incorrect 85 ms 1772 KB Output isn't correct
15 Incorrect 99 ms 1772 KB Output isn't correct
16 Incorrect 116 ms 1776 KB Output isn't correct
17 Runtime error 171 ms 71148 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 153 ms 70768 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Incorrect 108 ms 2280 KB Output isn't correct
20 Incorrect 121 ms 8172 KB Output isn't correct