結果
問題 | No.1579 New Type of Nim |
ユーザー |
|
提出日時 | 2021-07-02 21:53:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 5,038 ms |
コンパイル使用メモリ | 110,564 KB |
実行使用メモリ | 27,428 KB |
最終ジャッジ日時 | 2024-07-23 05:18:41 |
合計ジャッジ時間 | 2,822 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
コンパイルメッセージ
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 static System.Console;using System.Linq;class yuki302{static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();static void Main(){var cin = NList;Array.Sort(cin);WriteLine((cin[1] % 2 == 0 && cin[1] - cin[0] == 1) || (cin[1] % 2 == 1 && cin[1] == cin[0]) ? "Q" : "P");}}