Submission #263070

# Submission time Handle Problem Language Result Execution time Memory
263070 2020-08-13T12:45:06 Z ElyesChaabouni Pyramid Base (IOI08_pyramid_base) C++14
0 / 100
5000 ms 384 KB
/*#pragma GCC optimize("O3")*/
#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp> 
//#define ordered_set tree<int, null_type,less<int >, rb_tree_tag,tree_order_statistics_node_update> 
#define eps 1e-9
#define MOD1 998244353
#define MOD2 1000000007
#define INV_10 299473306
#define INF 1000000000
#define PI 3.14159265358979323846
using namespace std;
int main()
{
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	int n, m, b, p;
	cin >> m >> n >> b >> p;
	int r[n][m], d[n][m], dp[n][m];
	for(int i = 0; i < n; i++)
		for(int j = 0; j < m; j++)
			for(int k = 0; k < p; k)
				dp[i][j]=1;
}
//size

Compilation message

pyramid_base.cpp: In function 'int main()':
pyramid_base.cpp:21:26: warning: for increment expression has no effect [-Wunused-value]
   21 |    for(int k = 0; k < p; k)
      |                          ^
pyramid_base.cpp:18:6: warning: unused variable 'r' [-Wunused-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |      ^
pyramid_base.cpp:18:15: warning: unused variable 'd' [-Wunused-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |               ^
pyramid_base.cpp:18:24: warning: variable 'dp' set but not used [-Wunused-but-set-variable]
   18 |  int r[n][m], d[n][m], dp[n][m];
      |                        ^~
# Verdict Execution time Memory Grader output
1 Execution timed out 5046 ms 384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 5082 ms 384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 5035 ms 384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 5088 ms 384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 5039 ms 384 KB Time limit exceeded
# Verdict Execution time Memory Grader output
1 Execution timed out 5060 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5082 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5070 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5050 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5059 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5096 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5059 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5063 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5043 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 5058 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -