結果

問題 No.3081 HQ9+
ユーザー さかぽんさかぽん
提出日時 2021-04-02 11:22:22
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 104,060 KB
実行使用メモリ 23,712 KB
最終ジャッジ日時 2023-08-24 19:26:11
合計ジャッジ時間 4,389 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
21,420 KB
testcase_01 AC 54 ms
21,504 KB
testcase_02 AC 54 ms
23,540 KB
testcase_03 AC 54 ms
21,492 KB
testcase_04 AC 55 ms
19,412 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 55 ms
21,368 KB
testcase_14 AC 56 ms
21,440 KB
testcase_15 AC 55 ms
21,508 KB
testcase_16 AC 56 ms
21,380 KB
testcase_17 AC 56 ms
23,504 KB
testcase_18 AC 58 ms
23,552 KB
testcase_19 AC 56 ms
21,512 KB
testcase_20 AC 58 ms
21,448 KB
testcase_21 AC 58 ms
23,564 KB
testcase_22 AC 58 ms
21,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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;
	}
}
0