結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2014-11-23 17:34:26 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 390 bytes |
コンパイル時間 | 13,820 ms |
コンパイル使用メモリ | 235,836 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 02:34:53 |
合計ジャッジ時間 | 12,519 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 21 |
ソースコード
package main import ( "bufio" "fmt" "math" "os" "strconv" ) var sc = bufio.NewScanner(os.Stdin) func nextInt() int { sc.Scan() i, e := strconv.Atoi(sc.Text()) if e != nil { panic(e) } return i } func main() { //n := nextInt() n := 4 for i := 0; i <= n; i++ { if float64(n) <= math.Pow(2, float64(i)) { fmt.Println(i) break } } }