제출 #1007711

#제출 시각아이디문제언어결과실행 시간메모리
1007711makanhuliaLasers (NOI19_lasers)C++17
0 / 100
10 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define ld long double #define fi first #define se second #define pb push_back #define pii pair<int,int> #define piii pair<pair<int,int>,pair<int,int>> #define pip pair<int,pair<int,int>> signed main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, q; cin >> n >> q; int val = 0; for(int i = 1; i <= q; i++){ int x; cin >> x; int tmp = 0; for(int i = 1; i <= x; i++){ int a; cin >> a; val = max(val,a); } } cout << val - (n - val + 1) + 1 << endl; }

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

lasers.cpp: In function 'int main()':
lasers.cpp:20:13: warning: unused variable 'tmp' [-Wunused-variable]
   20 |         int tmp = 0;
      |             ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...