結果

問題 No.72 そろばん Med
ユーザー tsuchinaga
提出日時 2019-03-22 11:22:16
言語 Go
(1.23.4)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 10,041 ms
コンパイル使用メモリ 228,596 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 02:19:58
合計ジャッジ時間 11,071 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"math"
)

func main() {
	var n int
	_, _ = fmt.Scan(&n)
	mod := int(math.Pow(10, 6)) + 7
	fmt.Println((((n/2+1)%mod)*((n-n/2+1)%mod) - 1) % mod)
}
0