結果
問題 |
No.441 和か積
|
ユーザー |
|
提出日時 | 2019-04-29 16:18:23 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 612 bytes |
コンパイル時間 | 903 ms |
コンパイル使用メモリ | 114,196 KB |
実行使用メモリ | 25,952 KB |
最終ジャッジ日時 | 2024-12-24 14:13:41 |
合計ジャッジ時間 | 2,854 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 11 RE * 19 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace No441 { class Program { static void Main(string[] args) { decimal[] Ary = Array.ConvertAll(Console.ReadLine().Split(' '), decimal.Parse); decimal A, B; A = Ary[0]; B = Ary[1]; if (A >= decimal.MaxValue || B >= decimal.MaxValue) Console.WriteLine("P"); decimal sum = A + B; decimal mul = A * B; if (sum > mul) Console.WriteLine("S"); else if (sum < mul) Console.WriteLine("P"); else Console.WriteLine("E"); } } }