結果
問題 |
No.730 アルファベットパネル
|
ユーザー |
![]() |
提出日時 | 2018-09-28 15:57:21 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 640 bytes |
コンパイル時間 | 675 ms |
コンパイル使用メモリ | 109,564 KB |
実行使用メモリ | 25,524 KB |
最終ジャッジ日時 | 2024-10-12 04:51:45 |
合計ジャッジ時間 | 1,321 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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"); } } }