結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2019-05-15 01:03:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 640 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-21 06:06:45 |
合計ジャッジ時間 | 2,133 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
A, B = map(str, input().split())if len(A) >= 2 and len(B) >= 2:print('P')elif len(A) == 1 and len(B) == 1:a, b = int(A), int(B)if (a + b > a * b):print('S')elif (a + b < a * b):print('P')else:print('E')else:t = int(A) if len(A) == 1 else int(B)if t == 1 or t == 0:print('S')else:print('P')