結果
| 問題 | No.441 和か積 |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-09-15 13:11:03 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 1,000 ms |
| コード長 | 478 bytes |
| 記録 | |
| コンパイル時間 | 767 ms |
| コンパイル使用メモリ | 103,552 KB |
| 実行使用メモリ | 122,112 KB |
| 最終ジャッジ日時 | 2026-04-01 12:45:23 |
| 合計ジャッジ時間 | 4,152 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 == "2" && b == "2") return "E";
else return "P";
}
}
bluemegane