提出 #1087545


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

int main(){
  int L;
  string S;
  cin >> L >> S;
  for(int i=0;i<min(L,(int)S.length());i++){
    cout << S[i];
  }
  cout << endl;
  return 0;
}

提出情報

提出日時
問題 A - 入力フォーム
ユーザ kstm
言語 C++14 (GCC 5.4.1)
得点 100
コード長 207 Byte
結果 AC
実行時間 9 ms
メモリ 512 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 16
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
00_sample_00 AC 3 ms 256 KiB
00_sample_01 AC 3 ms 256 KiB
50_random_00 AC 3 ms 256 KiB
50_random_01 AC 6 ms 384 KiB
50_random_02 AC 3 ms 256 KiB
50_random_03 AC 6 ms 384 KiB
50_random_04 AC 5 ms 384 KiB
50_random_05 AC 4 ms 256 KiB
50_random_06 AC 4 ms 384 KiB
50_random_07 AC 4 ms 256 KiB
50_random_08 AC 3 ms 256 KiB
50_random_09 AC 5 ms 384 KiB
99_handmade_00 AC 3 ms 256 KiB
99_handmade_01 AC 3 ms 256 KiB
99_handmade_02 AC 3 ms 256 KiB
99_handmade_03 AC 9 ms 512 KiB