結果

問題 No.646 逆ピラミッド
ユーザー GodNegotoGodNegoto
提出日時 2019-11-27 17:18:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 3,193 ms
コンパイル使用メモリ 75,044 KB
実行使用メモリ 42,216 KB
最終ジャッジ日時 2024-04-26 05:39:28
合計ジャッジ時間 5,582 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,380 KB
testcase_01 AC 185 ms
41,176 KB
testcase_02 AC 109 ms
40,176 KB
testcase_03 AC 177 ms
42,216 KB
testcase_04 AC 168 ms
42,180 KB
testcase_05 AC 138 ms
40,616 KB
testcase_06 AC 176 ms
41,140 KB
testcase_07 AC 116 ms
40,104 KB
testcase_08 AC 124 ms
41,260 KB
testcase_09 AC 117 ms
40,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.Scanner;
import java.util.*;

public class sample7 {

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