Submission #629522

# Submission time Handle Problem Language Result Execution time Memory
629522 2022-08-14T15:13:47 Z Elnady Vudu (COCI15_vudu) C++17
0 / 140
319 ms 65536 KB
#include <bits/stdc++.h>
#include <unordered_map>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace __gnu_pbds;
using namespace std;
#define     endl                '\n'
//#define     long long                 long long
#define     all(pr1)            pr1.begin(),pr1.end()
#define     alr(pr1)            pr1.rbegin(),pr1.rend()
#define     CEIL(pr1, pr2)      (pr1 + pr2 - 1) / pr2
#define     IOS                 std::ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define		RT(s)				return cout<<s,0
#define		sz(s)				(long long)(s.size())

const long long N = 3e5 + 9, M = 1e9 + 9, MOD = 1e9 + 7, OO = 0x3f3f3f3f, MAX = 2147483647, LOO = 0x3f3f3f3f3f3f3f3f;

int32_t main()
{
	IOS;
	long long n, m;
	cin >> n;
	vector<long long> a(n), c;
	vector<pair<long long, long long>> b;
	map<long long, int> mp;
	for (long long i = 0; i < n; i++)
		cin >> a[i];
	cin >> m;
	a[0] -= m;
	for (long long i = 1; i < n; i++)
	{
		a[i] -= m;
		a[i] += a[i - 1];
	}
	for (long long i = 0; i < 1000000; i++)
		mp[i]++;

	/*for (auto ch : mp)
		b.push_back({ ch.first, ch.second });*/

	cout << 0 << "\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 251 ms 62988 KB Output isn't correct
2 Incorrect 234 ms 63004 KB Output isn't correct
3 Incorrect 244 ms 62884 KB Output isn't correct
4 Runtime error 319 ms 65536 KB Execution killed with signal 9
5 Runtime error 246 ms 65536 KB Execution killed with signal 9
6 Runtime error 275 ms 65536 KB Execution killed with signal 9
7 Runtime error 273 ms 65536 KB Execution killed with signal 9
8 Runtime error 265 ms 65536 KB Execution killed with signal 9
9 Runtime error 285 ms 65536 KB Execution killed with signal 9
10 Runtime error 277 ms 65536 KB Execution killed with signal 9