結果

問題 No.597 concat
ユーザー YukimotoPGYukimotoPG
提出日時 2019-03-01 11:13:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 1,674 bytes
コンパイル時間 4,218 ms
コンパイル使用メモリ 78,768 KB
実行使用メモリ 58,308 KB
最終ジャッジ日時 2023-09-05 16:30:29
合計ジャッジ時間 5,125 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
import static java.lang.System.*;
import java.io.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	static int maxInt = Integer.MAX_VALUE;
	static int minInt = Integer.MIN_VALUE;
	static int nextInt () {return Integer.parseInt(sc.next());}
	static int[] nextIntArray (int n) {return IntStream.range(0,n).map(i->nextInt()).toArray();}
	static int max (int... ar) {Arrays.sort(ar);return ar[ar.length-1];}
	static int min (int... ar) {Arrays.sort(ar);return ar[0];}
	
	
	static FastScanner fs = new FastScanner();
	public static void main(String[] args) {
		//MAIN----------------------------------------------------------
		int n = nextInt();
		StringBuilder sb = new StringBuilder();
		for (int i=0; i<n; i++) sb.append(fs.next());
		out.println(sb);
		
		//--------------------------------------------------------------
	}
}


class FastScanner {
	InputStream in = System.in;
	byte[] buffer = new byte[10];
	int length = 0;
	int p = 0;

	void getBuffer () {
		try {
			length = in.read(buffer);
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}

	boolean hasNextByte () {
		if (p < length) return true;
		else {
			p = 0;
			getBuffer();
			if (length == 0) return false;
		}
		return true;
	}

	int readByte () {
		if (hasNextByte() == true) return buffer[p++];
		return -1;
	}

	static boolean isPrintable (int n) {return 33<=n&&n<=126;}

	String next () {
		if (hasNextByte() == false) throw new NoSuchElementException();
		StringBuilder sb = new StringBuilder();
		int temp = readByte();
		while (isPrintable(temp)) {
			sb.appendCodePoint(temp);
			temp = readByte();
		}
		return sb.toString();
	}
}
0