| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 10218 | 陈颖钧 | 水下探测器 | C++ | Accepted | 100 | 1 MS | 260 KB | 307 | 2025-05-04 12:36:41 |
#include<bits/stdc++.h> using namespace std; int n,m,b; char a; int main(){ cin>>n>>m; b=m; while(cin>>a){ if(a=='u'){ if(b>0){ b--; } }else{ if(b<n){ b++; } } } cout<<b; return 0; }