結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-11-24 23:09:42 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 946 bytes |
コンパイル時間 | 1,128 ms |
コンパイル使用メモリ | 104,448 KB |
実行使用メモリ | 17,664 KB |
最終ジャッジ日時 | 2024-11-27 10:50:15 |
合計ジャッジ時間 | 1,848 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; public class Magatro { static string A, B; static void Main() { string abc = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"; A = Console.ReadLine(); B = Console.ReadLine(); for(int i = 0; i < 26 * 2; i++) { if (A.IndexOf(abc[i]) >= 0|| B.IndexOf(abc[i]) >= 0) { Console.WriteLine("NG"); return; } } if ((A[0] == '0'&&A!="0") || (B[0] == '0' && B != "0")) { Console.WriteLine("NG"); return; } if (int.Parse(A) > 12345 || int.Parse(B) > 12345) { Console.WriteLine("NG"); return; } Console.WriteLine("OK"); } }