結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー tsuchinaga
提出日時 2019-03-01 00:06:04
言語 Go
(1.23.4)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 10,529 ms
コンパイル使用メモリ 221,264 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 11:55:25
合計ジャッジ時間 11,246 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"strconv"
)

func main() {
	var a, b string
	_, _ = fmt.Scan(&a, &b)

	an, err := strconv.Atoi(a)
	if err != nil || strconv.Itoa(an) != a || an < 0 || 12345 < an {
		fmt.Println("NG")
		return
	}

	bn, err := strconv.Atoi(b)
	if err != nil || strconv.Itoa(bn) != b || bn < 0 || 12345 < bn {
		fmt.Println("NG")
		return
	}

	fmt.Println("OK")
}
0