結果
問題 |
No.542 1円玉と5円玉
|
ユーザー |
![]() |
提出日時 | 2020-12-10 23:53:54 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 419 bytes |
コンパイル時間 | 2,260 ms |
コンパイル使用メモリ | 73,820 KB |
実行使用メモリ | 43,672 KB |
最終ジャッジ日時 | 2024-09-19 20:51:55 |
合計ジャッジ時間 | 4,403 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 10 |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 1円の枚数 int coinA = sc.nextInt(); // 5円の枚数 int coinB = sc.nextInt(); for(int i = 0; i < coinB; i++){ for(int j = 0; j < coinA; j++){ System.out.println(coinA + coinB); } } } }