結果

問題 No.730 アルファベットパネル
ユーザー clocklrclocklr
提出日時 2018-09-28 15:57:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 640 bytes
コンパイル時間 768 ms
コンパイル使用メモリ 110,244 KB
実行使用メモリ 25,424 KB
最終ジャッジ日時 2024-04-20 09:26:51
合計ジャッジ時間 1,553 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
23,260 KB
testcase_01 AC 23 ms
25,396 KB
testcase_02 AC 23 ms
23,392 KB
testcase_03 AC 22 ms
25,132 KB
testcase_04 AC 23 ms
23,512 KB
testcase_05 AC 22 ms
23,472 KB
testcase_06 AC 22 ms
23,136 KB
testcase_07 AC 23 ms
25,424 KB
testcase_08 AC 23 ms
25,300 KB
testcase_09 AC 24 ms
23,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using static System.Console;

public class Hello{
    public static void Main(){
        string word = ReadLine();
        char[] a = new char[30];
        int count =0;
        for(int i=0;i<word.Length;i++){
            count = 0;
            for(int j=0;j<30;j++){
                if(word[i] == a[j]){
                    count++;
                    break;
                }
            }
            if(count > 0){ break; }
            if(count == 0){
                a[i] = word[i];
            }
        }
        if(count >0){
            WriteLine("NO");
        }else{
            WriteLine("YES");
        }
    }
}
0