結果

問題 No.441 和か積
ユーザー mkawa2mkawa2
提出日時 2020-01-04 10:57:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 605 ms / 1,000 ms
コード長 925 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 44,716 KB
最終ジャッジ日時 2024-05-02 07:58:07
合計ジャッジ時間 22,284 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 600 ms
44,592 KB
testcase_01 AC 586 ms
44,596 KB
testcase_02 AC 569 ms
44,604 KB
testcase_03 AC 576 ms
44,592 KB
testcase_04 AC 576 ms
44,460 KB
testcase_05 AC 571 ms
44,600 KB
testcase_06 AC 585 ms
44,460 KB
testcase_07 AC 585 ms
44,596 KB
testcase_08 AC 585 ms
44,212 KB
testcase_09 AC 580 ms
44,472 KB
testcase_10 AC 578 ms
44,348 KB
testcase_11 AC 566 ms
44,464 KB
testcase_12 AC 581 ms
44,588 KB
testcase_13 AC 587 ms
44,340 KB
testcase_14 AC 595 ms
44,716 KB
testcase_15 AC 586 ms
44,212 KB
testcase_16 AC 567 ms
44,460 KB
testcase_17 AC 596 ms
44,456 KB
testcase_18 AC 571 ms
44,468 KB
testcase_19 AC 599 ms
44,200 KB
testcase_20 AC 557 ms
44,472 KB
testcase_21 AC 593 ms
44,208 KB
testcase_22 AC 570 ms
44,460 KB
testcase_23 AC 583 ms
44,460 KB
testcase_24 AC 575 ms
44,600 KB
testcase_25 AC 587 ms
44,204 KB
testcase_26 AC 574 ms
44,468 KB
testcase_27 AC 585 ms
44,588 KB
testcase_28 AC 577 ms
44,472 KB
testcase_29 AC 570 ms
44,592 KB
testcase_30 AC 605 ms
44,584 KB
testcase_31 AC 572 ms
44,340 KB
testcase_32 AC 569 ms
44,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
from bisect import *
# from math import *
from collections import *
from heapq import *
from random import *
from decimal import *
import numpy as np
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def MF(): return map(float, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
dij = [(0, 1), (1, 0), (0, -1), (-1, 0)]

def main():
    a,b=MI()
    if a+b>a*b:
        print("S")
    elif a+b<a*b:
        print("P")
    else:
        print("E")
main()
0