結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
Santasuzusi
|
| 提出日時 | 2020-03-20 22:02:43 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 15,979 ms |
| コンパイル使用メモリ | 234,692 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-15 05:52:02 |
| 合計ジャッジ時間 | 13,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 37 |
ソースコード
package main
import "fmt"
func main(){
var x, y, h int
fmt.Scan(&x, &y, &h)
x *= 1000
y *= 1000
c := 1
for {
if y >= x {
if y > h {
y /= 2
h *= 2
c++
}else {
break
}
}else {
if x > h{
x /= 2
h*= 2
c++
}else {
break
}
}
// fmt.Println(h)
}
fmt.Println(c)
}
Santasuzusi