結果
問題 |
No.548 国士無双
|
ユーザー |
![]() |
提出日時 | 2025-07-09 19:42:34 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 763 bytes |
コンパイル時間 | 1,276 ms |
コンパイル使用メモリ | 114,068 KB |
実行使用メモリ | 20,608 KB |
最終ジャッジ日時 | 2025-07-09 19:42:41 |
合計ジャッジ時間 | 3,399 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
コンパイルメッセージ
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.Generic; using System.Linq; class Program { static void Main() { var s = Console.ReadLine(); var set1 = new HashSet<char>(s); var list1 = from c in "abcdefghijklm" select c; string ans = ""; switch (set1.Count) { case 12: ans = (from c in list1 where !set1.Contains(c) select c).First().ToString(); break; case 13: ans = string.Join("\n", list1); break; default: ans = "Impossible"; break; } Console.WriteLine(ans); } }