結果
問題 |
No.542 1円玉と5円玉
|
ユーザー |
![]() |
提出日時 | 2018-02-10 23:48:42 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 3,690 ms |
コンパイル使用メモリ | 74,996 KB |
実行使用メモリ | 55,500 KB |
最終ジャッジ日時 | 2024-11-06 16:57:04 |
合計ジャッジ時間 | 6,533 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 5 |
ソースコード
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); } } } }