Submission #1073619

#TimeUsernameProblemLanguageResultExecution timeMemory
1073619Hugo1729Longest beautiful sequence (IZhO17_subsequence)C++11
0 / 100
0 ms344 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<int> a(n),k(n); for(int i=0;i<n;i++)cin >> a[i]; for(int i=0;i<n;i++)cin >> k[i]; for(int i=0;i<n;i++){ if(a[i]>=256){ cout << "0"; return 5412354352345; } } cout << "0"; return 0; }

Compilation message (stderr)

subsequence.cpp: In function 'int main()':
subsequence.cpp:14:20: warning: overflow in conversion from 'long int' to 'int' changes value from '5412354352345' to '695559385' [-Woverflow]
   14 |             return 5412354352345;
      |                    ^~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...