結果

問題 No.646 逆ピラミッド
ユーザー tetsutetsu
提出日時 2018-02-09 22:39:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 199 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 3,262 ms
コンパイル使用メモリ 74,148 KB
実行使用メモリ 55,884 KB
最終ジャッジ日時 2024-04-17 05:09:36
合計ジャッジ時間 5,494 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
54,220 KB
testcase_01 AC 199 ms
54,752 KB
testcase_02 AC 133 ms
54,136 KB
testcase_03 AC 190 ms
54,536 KB
testcase_04 AC 180 ms
54,340 KB
testcase_05 AC 156 ms
54,176 KB
testcase_06 AC 190 ms
54,240 KB
testcase_07 AC 130 ms
54,340 KB
testcase_08 AC 135 ms
54,100 KB
testcase_09 AC 132 ms
55,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yuki183;
import java.util.*;
public class A {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=1; i<=n; i++) {
			for(int j=1; j<=n-i+1; j++) {
				System.out.print(n);
			}
			System.out.println();
		}
	}
}
0