結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
|
提出日時 | 2017-04-26 07:52:55 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 15,953 ms |
コンパイル使用メモリ | 233,368 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 13:56:41 |
合計ジャッジ時間 | 12,579 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
package mainimport ("fmt""regexp""strconv")func main() {var A, B stringreg := regexp.MustCompile(`^((0)|([1-9][0-9]{1,4}))$`)fmt.Scan(&A, &B)a, _ := strconv.Atoi(A)b, _ := strconv.Atoi(B)if reg.MatchString(A) && reg.MatchString(B) && a <= 12345 && b <= 12345 {fmt.Println("OK")} else {fmt.Println("NG")}}