제출 #927930

#제출 시각아이디문제언어결과실행 시간메모리
927930IsamAkcija (COCI15_akcija)C++17
80 / 80
12 ms1620 KiB
#include<bits/stdc++.h> /* ...... */ using namespace std; constexpr int sz = 2e5 + 5; int n; long long ans(0); int main(){ ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> n; vector<int> A(n); for(auto &j : A) cin >> j, ans += j; sort(A.begin(), A.end()); for(register int i = n - 3; i >= 0; i -= 3){ ans -= A[i]; } cout << ans << '\n'; return 0; } /* */

컴파일 시 표준 에러 (stderr) 메시지

akcija.cpp: In function 'int main()':
akcija.cpp:22:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   22 |  for(register int i = n - 3; i >= 0; i -= 3){
      |                   ^
#Verdict Execution timeMemoryGrader output
Fetching results...