結果
問題 | No.597 concat |
ユーザー | mban |
提出日時 | 2017-12-01 17:15:01 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 1,800 bytes |
コンパイル時間 | 4,326 ms |
コンパイル使用メモリ | 106,128 KB |
実行使用メモリ | 22,844 KB |
最終ジャッジ日時 | 2023-08-18 15:18:50 |
合計ジャッジ時間 | 5,836 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 46 ms
20,752 KB |
testcase_01 | AC | 47 ms
20,748 KB |
testcase_02 | AC | 46 ms
22,716 KB |
testcase_03 | AC | 46 ms
22,844 KB |
testcase_04 | AC | 47 ms
20,656 KB |
testcase_05 | AC | 47 ms
22,680 KB |
testcase_06 | AC | 46 ms
20,656 KB |
testcase_07 | AC | 46 ms
20,800 KB |
testcase_08 | AC | 48 ms
22,624 KB |
testcase_09 | AC | 47 ms
20,876 KB |
testcase_10 | AC | 45 ms
20,748 KB |
testcase_11 | AC | 47 ms
22,752 KB |
testcase_12 | AC | 46 ms
22,712 KB |
testcase_13 | AC | 47 ms
22,668 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Scanner { private readonly char Separator = ' '; private int Index = 0; private string[] Line = new string[0]; public string Next() { if (Index >= Line.Length) { Line = Console.ReadLine().Split(Separator); Index = 0; } var ret = Line[Index]; Index++; return ret; } public int NextInt() { return int.Parse(Next()); } public long NextLong() { return long.Parse(Next()); } public string[] StringArray() { Line = Console.ReadLine().Split(Separator); Index = Line.Length; return Line; } public int[] IntArray() { var l = StringArray(); var res = new int[l.Length]; for (int i = 0; i < l.Length; i++) { res[i] = int.Parse(l[i]); } return res; } public long[] LongArray() { var l = StringArray(); var res = new long[l.Length]; for (int i = 0; i < l.Length; i++) { res[i] = long.Parse(l[i]); } return res; } } class Program { private int N; private string[] S; private void Scan() { var sc = new Scanner(); N = sc.NextInt(); S = new string[N]; for (int i = 0; i < N; i++) { S[i] = sc.Next(); } } public void Solve() { Scan(); var sb = new StringBuilder(); foreach(var s in S) { sb.Append(s); } Console.WriteLine(sb.ToString()); } static void Main(string[] args) { new Program().Solve(); } }