結果

問題 No.1453 手助け
ユーザー ID 21712
提出日時 2024-10-18 09:21:44
言語 Go
(1.23.4)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 14,520 ms
コンパイル使用メモリ 218,784 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-18 09:22:00
合計ジャッジ時間 12,861 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"

func main() {
	var a,b,c,d,e int
	Scan(&a,&b,&c,&d,&e)
	p:=0
	x:=d
	for i:=1;i<=b-c;i++ {
		if i%10==0&&x>=e {
			x-=e
		}
		p+=x
	}
	Println(p)
}
0