| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1338334 | poapaa. | Infinite Race (EGOI24_infiniterace2) | C++20 | 23 ms | 408 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, q, diff, maxi;
cin >> n >> q;
diff = maxi = 0;
for( int i = 1; i <= q; i++ ) {
int x;
cin >> x;
if( x > 0 )
diff++;
else
diff--;
maxi = max( maxi, diff );
}
cout << max( 0, maxi - 1 );
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
