| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1331661 | onis | Deda (COCI17_deda) | C++20 | 1094 ms | 2944 KiB |
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int INF=1000000005;
int m[200005];
signed main() {
int n,q;
cin>>n>>q;
for (int i=1; i<=n; i++) m[i]=INF;
while (q--) {
char a;
int b,c;
cin>>a>>b>>c;
if (a=='M') {
m[c]=b;
}
if (a=='D') {
while (m[c]>b) c++;
cout<<c<<endl;
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
