結果

問題 No.441 和か積
ユーザー yomo3
提出日時 2020-02-18 11:56:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 180 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-06 15:28:53
合計ジャッジ時間 2,663 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = input().split()

# (A*B)-(A+B) = (A-1)(B-1)-1
if A==B=='2' or A==B=='0':
    ans = 'E'
elif A in ['0', '1'] or B in ['0', '1']:
    ans = 'S'
else:
    ans = 'P'

print(ans)
0