結果
問題 | No.646 逆ピラミッド |
ユーザー | denderaKawazu |
提出日時 | 2018-02-09 22:30:06 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 143 ms / 2,000 ms |
コード長 | 869 bytes |
コンパイル時間 | 2,233 ms |
コンパイル使用メモリ | 74,732 KB |
実行使用メモリ | 41,796 KB |
最終ジャッジ日時 | 2024-04-17 04:49:05 |
合計ジャッジ時間 | 4,328 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 131 ms
41,424 KB |
testcase_01 | AC | 138 ms
40,868 KB |
testcase_02 | AC | 128 ms
41,472 KB |
testcase_03 | AC | 130 ms
41,492 KB |
testcase_04 | AC | 134 ms
41,396 KB |
testcase_05 | AC | 133 ms
41,728 KB |
testcase_06 | AC | 143 ms
41,796 KB |
testcase_07 | AC | 131 ms
41,336 KB |
testcase_08 | AC | 113 ms
41,428 KB |
testcase_09 | AC | 130 ms
41,428 KB |
ソースコード
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskA solver = new TaskA(); solver.solve(1, in, out); out.close(); } static class TaskA { public void solve(int testNumber, Scanner in, PrintWriter out) { int n = in.nextInt(); for (int i = n; i > 0; i--) { for (int j = 0; j < i; j++) out.print(n); out.println(); } } } }