結果

問題 No.646 逆ピラミッド
ユーザー Freed_0929Freed_0929
提出日時 2018-02-09 22:23:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 187 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 2,932 ms
コンパイル使用メモリ 73,768 KB
実行使用メモリ 41,572 KB
最終ジャッジ日時 2024-04-17 04:35:22
合計ジャッジ時間 5,082 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
40,996 KB
testcase_01 AC 187 ms
41,220 KB
testcase_02 AC 129 ms
41,264 KB
testcase_03 AC 176 ms
41,336 KB
testcase_04 AC 180 ms
41,572 KB
testcase_05 AC 155 ms
40,944 KB
testcase_06 AC 179 ms
40,704 KB
testcase_07 AC 120 ms
40,648 KB
testcase_08 AC 127 ms
40,948 KB
testcase_09 AC 123 ms
39,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        for(int i=0;i<N;i++){
            for(int j=0;j<N-i;j++){
                System.out.print(N);
            }
            System.out.println("");
        }
        
    }
}
0