結果

問題 No.2863 Base 10 Subsets 1
コンテスト
ユーザー akasia_midori
提出日時 2024-08-30 21:44:45
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 64 ms / 2,000 ms
+ 234µs
コード長 570 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 287 ms
コンパイル使用メモリ 95,980 KB
実行使用メモリ 78,976 KB
最終ジャッジ日時 2026-08-25 09:31:29
合計ジャッジ時間 2,597 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def oi(): return int(input())
def os(): return input().rstrip()
def mi(): return list(map(int, input().split()))

# import sys
# input = sys.stdin.readline
# import sys
# sys.setrecursionlimit(10**8)
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
input_count = 0

A,B = mi()
def check(A,B):
    max_len = max(len(str(A)), len(str(B)))
    A = str(A).rjust(max_len, "0")
    B = str(B).rjust(max_len, "0")
    for a,b in zip(A,B):
        if int(a) < int(b):
            return False
    return True

if check(A,B):
    print("Yes")
else:
    print("No")
0