結果
| 問題 |
No.333 門松列を数え上げ
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-10 17:21:41 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 469 bytes |
| コンパイル時間 | 14,453 ms |
| コンパイル使用メモリ | 222,452 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 20:02:02 |
| 合計ジャッジ時間 | 12,754 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
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
for _, t := range strings.Split(scanner.Text(), " ") {
x3, _ := strconv.Atoi(t)
holder = append(holder, x3)
}
if th == 1 { break }
}
A, B := holder[0], holder[1]
if A < B {
fmt.Println(B - 1 - 1)
} else if A > B {
fmt.Println(2000000000 - B - 1)
}
}
💕💖💞