|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import java.util.Scanner; public class P1 { public static void main(String[] args){ Scanner input = new Scanner(System.in); int n = input.nextInt(); int i = 1; int j = 1; while (n > 0){ while (j > 0){ System.out.print(j + " "); j=j-1; } System.out.print("\n"); n=n-1; i=i+1; j=i; } } } |
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKcHVibGljIGNsYXNzIFAxIHsKCnB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpewoKU2Nhbm5lciBpbnB1dCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgppbnQgbiA9IGlucHV0Lm5leHRJbnQoKTsKaW50IGkgPSAxOwppbnQgaiA9IDE7Cgp3aGlsZSAobiA+IDApewp3aGlsZSAoaiA+IDApewoKU3lzdGVtLm91dC5wcmludChqICsgIiAiKTsKaj1qLTE7Cgp9ClN5c3RlbS5vdXQucHJpbnQoIlxuIik7Cm49bi0xOwppPWkrMTsKaj1pOwp9Cn0KfQ==
-
upload with new input
-
result: Runtime error time: 0.02s memory: 4980 kB signal: -1
3
prog.js:3: SyntaxError: missing ; before statement: prog.js:3: public class P1 { prog.js:3: .......^ -
result: Runtime error time: 0.02s memory: 4980 kB signal: -1
prog.js:3: SyntaxError: missing ; before statement: prog.js:3: public class P1 { prog.js:3: .......^



