結果
問題 |
No.441 和か積
|
ユーザー |
|
提出日時 | 2019-04-29 16:17:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 612 bytes |
コンパイル時間 | 941 ms |
コンパイル使用メモリ | 104,192 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-12-24 14:13:38 |
合計ジャッジ時間 | 2,968 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 RE * 1 |
other | WA * 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.MinValue) 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"); } } }