結果
問題 | No.8081 HQ9+ |
ユーザー |
|
提出日時 | 2021-04-02 11:22:22 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 3,006 ms |
コンパイル使用メモリ | 110,264 KB |
実行使用メモリ | 26,652 KB |
最終ジャッジ日時 | 2024-12-23 04:33:06 |
合計ジャッジ時間 | 4,531 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 8 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;using System.Linq;class I{static void Main() => Console.WriteLine(Solve());static object Solve(){var n = int.Parse(Console.ReadLine());var s = Console.ReadLine();if (s.Count(c => c == 'Q') == 1) return s;return -1;}}