Submission #68114241
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
using i128 = __int128;
using u128 = unsigned __int128;
void solve(){
int n,a,b;
cin>>n>>a>>b;
string s;
cin>>s;
s=' '+s;
string ans="";
for(int i = a+1;i <= n-b;i++)
ans.push_back(s[i]);
cout<<ans<<endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
t = 1;
///cin >> t;
while (t--)
solve();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - A Substring |
| User | goih |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 588 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3652 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3532 KiB |
| 00_sample_01.txt | AC | 1 ms | 3500 KiB |
| 00_sample_02.txt | AC | 1 ms | 3524 KiB |
| 01_random_03.txt | AC | 1 ms | 3520 KiB |
| 01_random_04.txt | AC | 1 ms | 3412 KiB |
| 01_random_05.txt | AC | 1 ms | 3520 KiB |
| 01_random_06.txt | AC | 1 ms | 3388 KiB |
| 01_random_07.txt | AC | 1 ms | 3524 KiB |
| 01_random_08.txt | AC | 1 ms | 3652 KiB |
| 01_random_09.txt | AC | 1 ms | 3500 KiB |