Submission #434502

# Submission time Handle Problem Language Result Execution time Memory
434502 2021-06-21T11:16:35 Z EncryptingWolf 최댓값 (tutorial2) C++14
0 / 100
1000 ms 204 KB
    #include <bits/stdc++.h>
    using namespace std;
    int GetMax(int N, int *A) {
      int mx = -1;
      for (int i = 0; i < N; ++i) {
        mx = max(mx,A[i]);
      }
	  long long num = 1e14;
	  long long a = 1;
	  long long b = 1;
	  for (int i = 0; i< num; i++)
	  {
		long long c = a+b;
		a = b;
		b = c;
	  }
	  std::cerr << b;
      return mx;

	  }
# Verdict Execution time Memory Grader output
1 Execution timed out 1095 ms 204 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1088 ms 204 KB Time limit exceeded
2 Halted 0 ms 0 KB -