제출 #1073615

#제출 시각아이디문제언어결과실행 시간메모리
1073615Hugo1729Longest beautiful sequence (IZhO17_subsequence)C++11
0 / 100
1 ms348 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 << "1\n1"; return 5412354352345; } } cout << "1\n1"; return 0; }

컴파일 시 표준 에러 (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...