結果

問題 No.646 逆ピラミッド
ユーザー fabled2468fabled2468
提出日時 2018-09-26 22:39:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 506 bytes
コンパイル時間 4,429 ms
コンパイル使用メモリ 74,796 KB
実行使用メモリ 42,064 KB
最終ジャッジ日時 2024-04-20 08:47:49
合計ジャッジ時間 6,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,684 KB
testcase_01 AC 150 ms
42,064 KB
testcase_02 AC 138 ms
41,552 KB
testcase_03 AC 145 ms
41,916 KB
testcase_04 AC 139 ms
41,940 KB
testcase_05 AC 136 ms
41,352 KB
testcase_06 AC 138 ms
40,460 KB
testcase_07 AC 132 ms
41,332 KB
testcase_08 AC 121 ms
40,356 KB
testcase_09 AC 128 ms
41,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.StringJoiner;

public class No646_ReversePiramid {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int value1 = scan.nextInt();
        scan.close();

        for (int i = value1; i > 0; i--) {
            StringJoiner text = new StringJoiner("");
            for (int j = i; j > 0; j--) {
                text.add(String.valueOf(value1));
            }
            System.out.println(text);
        }
    }
}
0