Submission #1606799


Source Code Expand

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int nest = scan.nextInt();
		int step = 1;
		int count = 0;
		for(int ind = 1;ind<=nest;ind++) {
			System.out.println(ind + " " + step);
			if(ind == nest) System.out.println(step);
			count++;
			if(count == step) {
				step++;
				count = 0;
			}
		}
	}
}

Submission Info

Submission Time
Task C - Go Home
User vjudge4
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 392 Byte
Status WA
Exec Time 2109 ms
Memory 49440 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
WA × 3
WA × 4
TLE × 14
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt, 1_012.txt, 1_013.txt, 1_014.txt, 1_015.txt, 1_016.txt, 1_017.txt
Case Name Status Exec Time Memory
0_000.txt WA 91 ms 21844 KB
0_001.txt WA 92 ms 18640 KB
0_002.txt WA 93 ms 19668 KB
1_003.txt TLE 2108 ms 47928 KB
1_004.txt TLE 2108 ms 44076 KB
1_005.txt WA 91 ms 20560 KB
1_006.txt TLE 2108 ms 44320 KB
1_007.txt TLE 2109 ms 46880 KB
1_008.txt TLE 2108 ms 49440 KB
1_009.txt TLE 2108 ms 45684 KB
1_010.txt TLE 2108 ms 47520 KB
1_011.txt TLE 2109 ms 46220 KB
1_012.txt TLE 2109 ms 42780 KB
1_013.txt TLE 2108 ms 47264 KB
1_014.txt TLE 2108 ms 47264 KB
1_015.txt TLE 2109 ms 43624 KB
1_016.txt TLE 2105 ms 46512 KB
1_017.txt TLE 2109 ms 46228 KB