提出 #28922932


ソースコード 拡げる

N = input()
LIM = str(2147483647)
is_minus = False

if '-' in N:
    is_minus = True
    N = N[1:]
    LIM = str(2147483648)

if len(LIM) < len(N):
    print("No")
    exit()

elif len(N) < len(LIM):
    print("Yes")
    exit()

else:
    for i in range(len(N)):
        if int(LIM[i]) < int(N[i]):
            print("No")
            exit()

print("Yes")

提出情報

提出日時
問題 A - Not Overflow
ユーザ is0292hx
言語 Python (3.8.2)
得点 100
コード長 380 Byte
結果 AC
実行時間 22 ms
メモリ 9056 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 10
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 20 ms 8824 KiB
example_01.txt AC 21 ms 9008 KiB
example_02.txt AC 20 ms 8940 KiB
hand_00.txt AC 20 ms 8824 KiB
hand_01.txt AC 22 ms 8940 KiB
hand_02.txt AC 21 ms 8880 KiB
hand_03.txt AC 20 ms 8888 KiB
hand_04.txt AC 20 ms 9056 KiB
hand_05.txt AC 19 ms 8888 KiB
hand_06.txt AC 19 ms 8876 KiB