結果
| 問題 | No.745 letinopia raoha |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-11-26 21:36:27 |
| 言語 | Go (1.25.5) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 448 bytes |
| 記録 | |
| コンパイル時間 | 11,636 ms |
| コンパイル使用メモリ | 221,220 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-11 07:21:44 |
| 合計ジャッジ時間 | 12,772 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
package main
import "fmt"
func main() {
var (
score = 0
bonus = 1
pf, gt, gd, ms int
)
fmt.Scan(&pf, >, &gd, &ms)
if ms >= 10 {
fmt.Println("Impossible")
return
}
for i := 1; ; i++ {
switch {
case gt == 0 && pf == 0:
fmt.Printf("Possible\n%d", score)
return
case gt != 0:
score += 50 * bonus
gt--
case pf != 0:
score += 100 * bonus
pf--
}
if i%100 == 0 {
bonus *= 2
}
}
}
toshiro_yanagi