提出 #73196073


ソースコード 拡げる

n0,n1=map(int,input().split(' '))
an=0
for i in range(1,1+n0):
  f,ii=0,i
  while ii>0:
    f+=ii%10
    ii//=10
  an+=1 if f==n1 else 0
print(an)

提出情報

提出日時
問題 B - Digit Sum
ユーザ bscdesu
言語 Python (CPython 3.13.7)
得点 200
コード長 154 Byte
結果 AC
実行時間 65 ms
メモリ 9220 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 12
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 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
ケース名 結果 実行時間 メモリ
random_01.txt AC 59 ms 9220 KiB
random_02.txt AC 65 ms 9060 KiB
random_03.txt AC 10 ms 9188 KiB
random_04.txt AC 61 ms 9220 KiB
random_05.txt AC 16 ms 9164 KiB
random_06.txt AC 63 ms 9212 KiB
random_07.txt AC 35 ms 9164 KiB
random_08.txt AC 62 ms 9060 KiB
random_09.txt AC 53 ms 9060 KiB
sample_01.txt AC 10 ms 9164 KiB
sample_02.txt AC 11 ms 9212 KiB
sample_03.txt AC 63 ms 9200 KiB