結果

問題 No.311 z in FizzBuzzString
コンテスト
ユーザー 💕💖💞
提出日時 2016-09-10 21:48:33
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 1 ms / 1,500 ms
コード長 364 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 15,228 ms
コンパイル使用メモリ 286,560 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-12 01:10:50
合計ジャッジ時間 13,941 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
}
0