Submission #2558418


Source Code Expand

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

Submission Info

Submission Time
Task A - 入力フォーム
User luogu_bot5
Language C++ (GCC 5.4.1)
Score 100
Code Size 213 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 3 ms 384 KB
50_random_02 AC 1 ms 256 KB
50_random_03 AC 3 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