Submission #68111990


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
inline int read()
{
	int x=0,f=1;char ch=getchar();
	while (ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();}
	while (ch>='0'&&ch<='9'){x=x*10+ch-48;ch=getchar();}
	return x*f;
}
void out(int x)
{
    if(x<0)putchar('-'),x=-x;
    if(x<10)putchar(x+'0');
    else out(x/10),putchar(x%10+'0');
}
string x;
int n,a,b; 
int main(){
	n=read();
	a=read();
	b=read();
	cin>>x;
	for(int i=a;i<=n-b-1;i++) cout<<x[i];
	return 0;
}

Submission Info

Submission Time
Task A - A Substring
User Fireflies
Language C++ 20 (gcc 12.2)
Score 100
Code Size 495 Byte
Status AC
Exec Time 1 ms
Memory 3652 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 3464 KiB
00_sample_01.txt AC 1 ms 3516 KiB
00_sample_02.txt AC 1 ms 3524 KiB
01_random_03.txt AC 1 ms 3404 KiB
01_random_04.txt AC 1 ms 3652 KiB
01_random_05.txt AC 1 ms 3592 KiB
01_random_06.txt AC 1 ms 3448 KiB
01_random_07.txt AC 1 ms 3540 KiB
01_random_08.txt AC 1 ms 3564 KiB
01_random_09.txt AC 1 ms 3404 KiB