結果
| 問題 |
No.542 1円玉と5円玉
|
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2017-07-14 22:48:21 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 157 ms / 2,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 2,296 ms |
| コンパイル使用メモリ | 73,992 KB |
| 実行使用メモリ | 54,616 KB |
| 最終ジャッジ日時 | 2024-10-07 23:19:46 |
| 合計ジャッジ時間 | 4,420 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
boolean [] boo = new boolean [601];
for(int i=0; i<=B; i++){
for(int j=0; j<=A; j++){
int tmp = i*5+j;
boo[tmp] = true;
}
}
for(int i=1; i<=600; i++){
if(boo[i])System.out.println(i);
}
}
}
kohaku_kohaku