Submission #2558043


Source Code Expand

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

Submission Info

Submission Time
Task A - 入力フォーム
User luogu_bot2
Language C++ (GCC 5.4.1)
Score 100
Code Size 231 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 6 ms 512 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