結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2018-09-01 01:50:48 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 527 bytes |
コンパイル時間 | 895 ms |
コンパイル使用メモリ | 107,108 KB |
実行使用メモリ | 25,948 KB |
最終ジャッジ日時 | 2024-09-14 00:35:08 |
合計ジャッジ時間 | 3,203 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 24 WA * 3 RE * 3 |
コンパイルメッセージ
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 No441 { static void Main() { var num = Console.ReadLine().Split(' '); var ans = 'P'; var a = -1; var b = -1; if (num[0].Length < 2) a = Int32.Parse(num[0]); if (num[1].Length < 2) b = Int32.Parse(num[0]); if (a != -1 || b != -1) { if ((a == 0 && b == 0) || (a == 2 && b == 2)) ans = 'E'; else if ((a == 0 || b == 0) || (a == 1 || b == 1)) ans = 'S'; } Console.WriteLine(ans); } }