結果
問題 | No.244 ★1のグラフの問題 |
ユーザー |
|
提出日時 | 2015-07-17 02:05:36 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 513 bytes |
コンパイル時間 | 9,891 ms |
コンパイル使用メモリ | 225,736 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 11:42:47 |
合計ジャッジ時間 | 10,368 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
package mainimport ("fmt")import ("bufio""os""strconv")func main() {N := nextInt()fmt.Println(N-1)}var s = bufio.NewScanner(os.Stdin)func next() string {s.Split(bufio.ScanWords)s.Scan()return s.Text()}func nextLine() string {s.Split(bufio.ScanLines)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}