| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1276251 | Almonther | Infinite Race (EGOI24_infiniterace2) | C++20 | 9 ms | 580 KiB |
#include<bits/stdc++.h>
#define ll long long
#define co cout<<
using namespace std;
// stuff
void solve(){
ll n,q;
cin>>n>>q;
ll val=0,p=0;
while(q--){
ll x;
cin>>x;
if(x>0) p+=val,val=1;
else val=0;
}
co p;
}
int main(){
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int _=1;
// cin>>_;
while(_--) solve();
}| # | 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... | ||||
