Submission #74841036
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
#define T int t;cin>>t;while(t--)
const int N=2e5+5;
const int MOD=1e9+7;
const int INF=0x3f3f3f3f3f3f3f3f;
void solve(){
int n;
string s;
cin>>n>>s;
int pos=n;
for(int i=0;i<n;i++){
if(s[i]!='o'){
pos=i;
break;
}
}
for(int i=pos;i<n;i++){
cout<<s[i];
}
cout<<endl;
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
//T
solve();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Trimo |
| User | ease2k |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 586 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3608 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 1 ms | 3460 KiB |
| sample_02.txt | AC | 1 ms | 3416 KiB |
| sample_03.txt | AC | 1 ms | 3452 KiB |
| test_01.txt | AC | 1 ms | 3408 KiB |
| test_02.txt | AC | 1 ms | 3408 KiB |
| test_03.txt | AC | 1 ms | 3608 KiB |
| test_04.txt | AC | 1 ms | 3536 KiB |
| test_05.txt | AC | 1 ms | 3576 KiB |
| test_06.txt | AC | 1 ms | 3520 KiB |
| test_07.txt | AC | 1 ms | 3512 KiB |
| test_08.txt | AC | 1 ms | 3460 KiB |
| test_09.txt | AC | 1 ms | 3576 KiB |
| test_10.txt | AC | 1 ms | 3424 KiB |