Submission #68110926


Source Code Expand

// ABC 417
#include<bits/stdc++.h>
using namespace std;
using LL = long long;

string removeSome(int n, int l, int r, const string &s) {
    string ret;
    for(int i = l; i < n - r; i++) ret.push_back(s[i]);
    return ret;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int tc = 1; // cin >> tc;
    for(int test_id = 1; test_id <= tc; test_id++) {
        int n, l, r; cin >> n >> l >> r;
        string s; cin >> s;
        const auto ans = removeSome(n, l, r, s);
        cout << ans << "\n";
    }
    return 0;
}

Submission Info

Submission Time
Task A - A Substring
User GoogleBot
Language C++ 17 (gcc 12.2)
Score 100
Code Size 571 Byte
Status AC
Exec Time 1 ms
Memory 3476 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
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 3452 KiB
00_sample_01.txt AC 1 ms 3416 KiB
00_sample_02.txt AC 1 ms 3436 KiB
01_random_03.txt AC 1 ms 3388 KiB
01_random_04.txt AC 1 ms 3476 KiB
01_random_05.txt AC 1 ms 3476 KiB
01_random_06.txt AC 1 ms 3372 KiB
01_random_07.txt AC 1 ms 3432 KiB
01_random_08.txt AC 1 ms 3408 KiB
01_random_09.txt AC 1 ms 3432 KiB