結果

問題 No.646 逆ピラミッド
ユーザー matsuyoshi30matsuyoshi30
提出日時 2018-04-26 23:02:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 2,267 ms
コンパイル使用メモリ 71,800 KB
実行使用メモリ 56,404 KB
最終ジャッジ日時 2023-09-10 05:42:05
合計ジャッジ時間 4,584 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
56,068 KB
testcase_01 AC 190 ms
56,120 KB
testcase_02 AC 123 ms
56,164 KB
testcase_03 AC 177 ms
56,264 KB
testcase_04 AC 164 ms
56,404 KB
testcase_05 AC 150 ms
55,928 KB
testcase_06 AC 183 ms
56,168 KB
testcase_07 AC 124 ms
55,852 KB
testcase_08 AC 124 ms
55,960 KB
testcase_09 AC 125 ms
56,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        for(int i = 0; i < n; i++) {
            for(int j = 0; j < n - i; j++)
                System.out.print(n);
            System.out.println();
        }
    }
}
0