結果

問題 No.1389 Clumsy Calculation
コンテスト
ユーザー ID 21712
提出日時 2024-12-14 23:24:55
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 213 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 15,370 ms
コンパイル使用メモリ 283,888 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-30 01:14:53
合計ジャッジ時間 19,884 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import . "fmt"
import . "os"
import bf "bufio"

func main() {
	rd:=bf.NewReader(Stdin)
	var n,x int64
	Fscan(rd,&n,&x)
	x=-x*(n-1)
	for ;n>0;n-- {
		var c int64
		Fscan(rd,&c)
		x+=c
	}
	Println(x)
}
0