結果

問題 No.542 1円玉と5円玉
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-10 23:48:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 2,450 ms
コンパイル使用メモリ 74,636 KB
実行使用メモリ 55,400 KB
最終ジャッジ日時 2024-04-24 09:32:09
合計ジャッジ時間 5,194 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,500 KB
testcase_01 AC 138 ms
41,492 KB
testcase_02 WA -
testcase_03 AC 121 ms
40,028 KB
testcase_04 AC 136 ms
41,292 KB
testcase_05 AC 152 ms
41,468 KB
testcase_06 AC 156 ms
41,588 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 140 ms
41,300 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int one = sc.nextInt();
		int five = sc.nextInt();
		
		for (int i=0; i<=five; i++) {
			for (int j=0; j<=one; j++) {
				if (i==0 && j==0) {continue;}
				System.out.println(5*i+j);
			}
		}
	}
}
0