結果
問題 |
No.1389 Clumsy Calculation
|
ユーザー |
![]() |
提出日時 | 2024-12-14 23:24:55 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 111 ms / 2,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 11,715 ms |
コンパイル使用メモリ | 233,524 KB |
実行使用メモリ | 7,836 KB |
最終ジャッジ日時 | 2024-12-14 23:25:11 |
合計ジャッジ時間 | 16,095 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
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) }