結果

問題 No.730 アルファベットパネル
ユーザー bluemeganebluemegane
提出日時 2018-09-07 21:27:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 3,551 ms
コンパイル使用メモリ 103,744 KB
実行使用メモリ 24,396 KB
最終ジャッジ日時 2023-08-19 12:30:14
合計ジャッジ時間 3,741 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
24,248 KB
testcase_01 AC 49 ms
24,396 KB
testcase_02 AC 46 ms
22,096 KB
testcase_03 AC 48 ms
24,228 KB
testcase_04 AC 48 ms
24,224 KB
testcase_05 AC 46 ms
22,260 KB
testcase_06 AC 48 ms
22,176 KB
testcase_07 AC 48 ms
22,204 KB
testcase_08 AC 48 ms
24,260 KB
testcase_09 AC 48 ms
20,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Collections.Generic;
using System;

public class Hello
{
    public static void Main()
    {
        var hs = new HashSet<char>();
        var s = Console.ReadLine().Trim();
        for (int i = 0; i < s.Length; i++)
            if (!hs.Add(s[i])) { Console.WriteLine("NO"); goto end; }
        Console.WriteLine("YES");
        end:;
    }
}
0