結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2018-09-15 13:08:34 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 529 bytes |
コンパイル時間 | 764 ms |
コンパイル使用メモリ | 109,960 KB |
実行使用メモリ | 17,664 KB |
最終ジャッジ日時 | 2024-07-17 21:36:01 |
合計ジャッジ時間 | 2,711 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;public class Hello{public static void Main(){string[] line = Console.ReadLine().Trim().Split(' ');Console.WriteLine(check(line[0],line[1]));}public static string check(string a, string b){if (a == "0" && b == "0") return "E";else if (a == "0" | b == "0") return "S";else if (a == "1" && b == "1") return "S";else if (a == "1" | b == "1") return "S";else if (a == "2" && b == "2") return "E";else return "P";}}