Submission #2557875


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
long long n,len;
string st;
int main()
{
	cin>>n;
	cin>>st;len=st.size();
	for(int i=0;i<min(n,len);i++)
	  cout<<st[i];
	cout<<endl;
	return 0;
}

Submission Info

Submission Time
Task A - 入力フォーム
User luogu_bot4
Language C++ (GCC 5.4.1)
Score 100
Code Size 203 Byte
Status AC
Exec Time 7 ms
Memory 512 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 16
Set Name Test Cases
Sample 00_sample_00, 00_sample_01
All 00_sample_00, 00_sample_01, 50_random_00, 50_random_01, 50_random_02, 50_random_03, 50_random_04, 50_random_05, 50_random_06, 50_random_07, 50_random_08, 50_random_09, 99_handmade_00, 99_handmade_01, 99_handmade_02, 99_handmade_03
Case Name Status Exec Time Memory
00_sample_00 AC 1 ms 256 KB
00_sample_01 AC 1 ms 256 KB
50_random_00 AC 1 ms 256 KB
50_random_01 AC 5 ms 384 KB
50_random_02 AC 1 ms 256 KB
50_random_03 AC 4 ms 384 KB
50_random_04 AC 3 ms 384 KB
50_random_05 AC 2 ms 256 KB
50_random_06 AC 3 ms 384 KB
50_random_07 AC 2 ms 256 KB
50_random_08 AC 1 ms 256 KB
50_random_09 AC 3 ms 384 KB
99_handmade_00 AC 1 ms 256 KB
99_handmade_01 AC 1 ms 256 KB
99_handmade_02 AC 1 ms 256 KB
99_handmade_03 AC 7 ms 512 KB