結果

問題 No.542 1円玉と5円玉
ユーザー tsuchinagatsuchinaga
提出日時 2019-06-20 10:25:38
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 14,871 ms
コンパイル使用メモリ 211,872 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-22 06:45:42
合計ジャッジ時間 15,876 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var a, b int
	_, _ = fmt.Scan(&a, &b)

	for i := 0; i < b; i++ {
		stop := a
		if stop >= 4 {
			stop = 4
		}
		for j := 0; j <= stop; j++ {
			p := i*5 + j
			if p > 0 {
				fmt.Println(p)
			}
		}
	}

	for j := 0; j <= a; j++ {
		fmt.Println(5*b + j)
	}
}
0