結果

問題 No.1883 SLASH
ユーザー とりゐとりゐ
提出日時 2022-03-25 21:20:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,904 KB
最終ジャッジ日時 2023-08-04 08:01:20
合計ジャッジ時間 2,714 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,904 KB
testcase_01 AC 85 ms
71,780 KB
testcase_02 AC 81 ms
71,572 KB
testcase_03 AC 82 ms
71,576 KB
testcase_04 AC 85 ms
71,768 KB
testcase_05 AC 89 ms
71,836 KB
testcase_06 AC 86 ms
71,716 KB
testcase_07 AC 84 ms
71,412 KB
testcase_08 AC 81 ms
71,520 KB
testcase_09 AC 83 ms
71,424 KB
testcase_10 AC 80 ms
71,768 KB
testcase_11 AC 83 ms
71,624 KB
testcase_12 AC 84 ms
71,556 KB
testcase_13 AC 83 ms
71,576 KB
testcase_14 AC 83 ms
71,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
from collections import deque,Counter
from sys import stdin

#sys.setrecursionlimit(10**7)

int1=lambda x: int(x)-1
stinput=lambda :stdin.readline()[:-1]
ii=lambda :int(stinput())
mi=lambda :map(int, stdin.readline().split())
li=lambda :list(mi())
mi1=lambda :map(int1, stdin.readline().split())
li1=lambda :list(mi1())
mis=lambda :map(str, stdin.readline().split())
lis=lambda :list(mis())

from collections import defaultdict
#d=defaultdict(int)
#d=defaultdict(lambda:1)

mod=10**9+7
Mod=998244353
INF=10**18
ans=0

s=[int(i) for i in input()]
print(max(s)-min(s))
0