Submission #815665


Source Code Expand

Copy
import java.util.*;
public class Main {

	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.nextLine();
		String[] inArray = in.split(" ");
		int N = Integer.parseInt(inArray[0]);
		int L = Integer.parseInt(inArray[1]);
		List<String> inList = new ArrayList<String>();
		for (int i =0 ; i < N; i++) {
			String inStr = sc.nextLine();
			inList.add(inStr);
		}
		Collections.sort(inList);
		StringBuffer buf = new StringBuffer();
		for (int i = 0; i < inList.size(); i++) {
			buf.append(inList.get(i));
		}
		System.out.println(buf.toString());
		sc.close();
	}
	

}

Submission Info

Submission Time
Task B - Iroha Loves Strings (ABC Edition)
User stmasa2015
Language Java7 (OpenJDK 1.7.0)
Score 200
Code Size 642 Byte
Status AC
Exec Time 254 ms
Memory 9684 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 1
AC × 10
Set Name Test Cases
Sample subtask0_sample_01.txt
All subtask0_sample_01.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 223 ms 8788 KB
subtask1_01.txt AC 230 ms 8916 KB
subtask1_02.txt AC 254 ms 9172 KB
subtask1_03.txt AC 214 ms 8788 KB
subtask1_04.txt AC 217 ms 8916 KB
subtask1_05.txt AC 211 ms 8660 KB
subtask1_06.txt AC 224 ms 8788 KB
subtask1_07.txt AC 240 ms 9684 KB
subtask1_08.txt AC 218 ms 8788 KB
subtask1_09.txt AC 218 ms 8660 KB