結果
| 問題 |
No.311 z in FizzBuzzString
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-10 21:48:33 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,500 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 13,084 ms |
| コンパイル使用メモリ | 239,992 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 21:48:39 |
| 合計ジャッジ時間 | 13,643 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
_ "strings"
_ "math"
)
func main() {
scanner := bufio.NewScanner(os.Stdin)
holder := []int{}
th := 0
for scanner.Scan() {
th += 1
x3, _ := strconv.Atoi(scanner.Text())
holder = append(holder, x3)
if th == 1 { break }
}
N := holder[0]
znum := 0
znum = (N/3 + N/5)*2
fmt.Println(znum)
}
💕💖💞