Submission #1606795
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 | vjudge2 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 392 Byte |
Status | WA |
Exec Time | 2109 ms |
Memory | 47468 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
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 | 92 ms | 20692 KB |
0_001.txt | WA | 95 ms | 19796 KB |
0_002.txt | WA | 94 ms | 19028 KB |
1_003.txt | TLE | 2109 ms | 46516 KB |
1_004.txt | TLE | 2109 ms | 47396 KB |
1_005.txt | WA | 92 ms | 21588 KB |
1_006.txt | TLE | 2109 ms | 47008 KB |
1_007.txt | TLE | 2109 ms | 47244 KB |
1_008.txt | TLE | 2109 ms | 47324 KB |
1_009.txt | TLE | 2109 ms | 47128 KB |
1_010.txt | TLE | 2109 ms | 45324 KB |
1_011.txt | TLE | 2109 ms | 46900 KB |
1_012.txt | TLE | 2109 ms | 46744 KB |
1_013.txt | TLE | 2109 ms | 45976 KB |
1_014.txt | TLE | 2109 ms | 47468 KB |
1_015.txt | TLE | 2109 ms | 47264 KB |
1_016.txt | TLE | 2109 ms | 47392 KB |
1_017.txt | TLE | 2109 ms | 46872 KB |