結果
| 問題 | No.730 アルファベットパネル |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-10-11 00:49:35 |
| 言語 | C# (.NET 10.0.402 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 30 ms / 2,000 ms |
| + 299µs | |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 6,842 ms |
| コンパイル使用メモリ | 172,000 KB |
| 実行使用メモリ | 30,208 KB |
| 最終ジャッジ日時 | 2026-10-11 00:50:03 |
| 合計ジャッジ時間 | 6,725 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (197 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var s = ReadLine();
var count = new int[26];
foreach (var c in s) ++count[c - 'A'];
WriteLine(count.All(ci => ci < 2) ? "YES" : "NO");
}
}