結果
| 問題 | No.745 letinopia raoha |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-11-26 21:36:27 |
| 言語 | Go (1.26.1) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 223µs | |
| コード長 | 448 bytes |
| 記録 | |
| コンパイル時間 | 14,836 ms |
| コンパイル使用メモリ | 295,248 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 08:57:54 |
| 合計ジャッジ時間 | 14,659 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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