結果
| 問題 |
No.111 あばばばば
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-03-19 03:29:06 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 431 bytes |
| コンパイル時間 | 11,512 ms |
| コンパイル使用メモリ | 223,808 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-10 03:27:58 |
| 合計ジャッジ時間 | 11,612 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
package main
import (
"bufio"
"os"
"strconv"
"fmt"
)
var s = bufio.NewScanner(os.Stdin)
func next() string {
s.Split(bufio.ScanWords)
s.Scan()
return s.Text()
}
func nextInt() int {
i, e := strconv.Atoi(next())
if e != nil {
panic(e)
}
return i
}
func nextLong() int64 {
i, e := strconv.ParseInt(next(), 10, 64)
if e != nil {
panic(e)
}
return i
}
func main(){
l:=nextLong()
fmt.Println((l-1)*(l-1)/4)
}