Submission #68101972


Source Code Expand

#include<fstream>
#include<iostream>
#include<iomanip>
#include<vector>
#include<queue>
#include<unordered_set>
#include<unordered_map>
#include<map>
#include<cmath>
#include<numbers>
#include<algorithm>
#include<string>
#include<set>
#include<stack>
#include<random>
#include<bitset>
#include<cassert>
#include<exception>

using namespace std;
using ll=long long;
using uset=unordered_set<long long>;

int H,W;
vector<string> strs;

struct point{
	int x,y;
	point():x(0),y(0){}
	point(int x,int y):x(x),y(y){}
	point operator+(const point& a){
		return point(a.x+x,a.y+y);
	}
	bool rangeCheck(){
		return 0<=x&&x<W&&0<=y&&y<H;
	}
	bool mapCheck(){
		return rangeCheck()&&strs[y][x]=='.';
	}
};

template<typename T>
bool chmax(T& a,const T& b){
	if(a<b){
		a=b;
		return true;
	}
	return false;
}
template<typename T>
bool chmin(T& a,const T& b){
	if(a>b){
		a=b;
		return true;
	}
	return false;
}


int main(){
	int N,A,B;
	string S;
	cin>>N>>A>>B>>S;

	for(int i=A;i<N-B;i++){
		cout<<S[i];
	}
	cout<<endl;

	return 0;
}

Submission Info

Submission Time
Task A - A Substring
User Satsuki15
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1096 Byte
Status AC
Exec Time 1 ms
Memory 3644 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 3520 KiB
00_sample_01.txt AC 1 ms 3484 KiB
00_sample_02.txt AC 1 ms 3504 KiB
01_random_03.txt AC 1 ms 3460 KiB
01_random_04.txt AC 1 ms 3644 KiB
01_random_05.txt AC 1 ms 3464 KiB
01_random_06.txt AC 1 ms 3420 KiB
01_random_07.txt AC 1 ms 3360 KiB
01_random_08.txt AC 1 ms 3512 KiB
01_random_09.txt AC 1 ms 3420 KiB