Submission #74839065
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
string s;
cin>>n>>s;
bool ch=false;
for(int i=0;i<n;i++){
if(ch==false){
if(s[i]!='o'){
ch=true;
cout<<s[i];
}
}
else {
cout<<s[i];
}
}
cout<<endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Trimo |
| User | kur0megane |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 386 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3604 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 | 3468 KiB |
| sample_02.txt | AC | 1 ms | 3560 KiB |
| sample_03.txt | AC | 1 ms | 3396 KiB |
| test_01.txt | AC | 1 ms | 3392 KiB |
| test_02.txt | AC | 1 ms | 3604 KiB |
| test_03.txt | AC | 1 ms | 3452 KiB |
| test_04.txt | AC | 1 ms | 3580 KiB |
| test_05.txt | AC | 1 ms | 3464 KiB |
| test_06.txt | AC | 1 ms | 3464 KiB |
| test_07.txt | AC | 1 ms | 3604 KiB |
| test_08.txt | AC | 1 ms | 3604 KiB |
| test_09.txt | AC | 1 ms | 3464 KiB |
| test_10.txt | AC | 1 ms | 3500 KiB |