提出 #19119311


ソースコード 拡げる

import math
from math import gcd,pi,sqrt
INF = float("inf")
MOD = 10**9 + 7
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
import itertools
import bisect
import re
from collections import Counter,deque,defaultdict
def iinput(): return int(input())
def imap(): return map(int, input().split())
def ilist(): return list(imap())
def irow(N): return [iinput() for i in range(N)]
def sinput(): return input().rstrip()
def smap(): return sinput().split()
def slist(): return list(smap())
def srow(N): return [sinput() for i in range(N)]

def main():
    a,b = smap()
    print(max(sum(map(int,a)), sum(map(int,b))))


if __name__=="__main__":
    main()

提出情報

提出日時
問題 A - Large Digits
ユーザ kenken0305
言語 Python (3.8.2)
得点 100
コード長 693 Byte
結果 AC
実行時間 34 ms
メモリ 9948 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
hand_01.txt AC 34 ms 9760 KiB
random_01.txt AC 32 ms 9764 KiB
random_02.txt AC 31 ms 9940 KiB
random_03.txt AC 28 ms 9816 KiB
random_04.txt AC 31 ms 9660 KiB
random_05.txt AC 31 ms 9652 KiB
random_06.txt AC 28 ms 9896 KiB
random_07.txt AC 29 ms 9656 KiB
random_08.txt AC 34 ms 9760 KiB
random_09.txt AC 29 ms 9752 KiB
sample_01.txt AC 31 ms 9656 KiB
sample_02.txt AC 28 ms 9812 KiB
sample_03.txt AC 32 ms 9948 KiB