結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー | Crowea |
提出日時 | 2019-01-21 12:06:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 503 bytes |
コンパイル時間 | 1,118 ms |
コンパイル使用メモリ | 65,284 KB |
実行使用メモリ | 22,844 KB |
最終ジャッジ日時 | 2023-10-13 17:15:00 |
合計ジャッジ時間 | 2,355 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 52 ms
20,652 KB |
testcase_03 | AC | 53 ms
20,692 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 53 ms
20,748 KB |
testcase_07 | WA | - |
ソースコード
using System; using System.Collections.Generic; using System.Linq; class Program { static class Player { internal static string Petr = "Petr"; internal static string square1001 = "square1001"; internal static string currentPlayer = Petr; } static void Main(string[] args) { var permutation = int.Parse(Console.ReadLine()); var winner = (permutation - 1) % 2 == 0 ? Player.Petr : Player.square1001; Console.WriteLine(winner); } }