結果

問題 No.1883 SLASH
ユーザー とりゐとりゐ
提出日時 2022-03-25 21:20:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 82,356 KB
実行使用メモリ 54,144 KB
最終ジャッジ日時 2024-04-22 05:52:13
合計ジャッジ時間 1,615 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
53,760 KB
testcase_01 AC 46 ms
53,504 KB
testcase_02 AC 45 ms
53,760 KB
testcase_03 AC 44 ms
53,760 KB
testcase_04 AC 44 ms
53,504 KB
testcase_05 AC 45 ms
53,376 KB
testcase_06 AC 46 ms
53,632 KB
testcase_07 AC 45 ms
54,144 KB
testcase_08 AC 44 ms
54,016 KB
testcase_09 AC 45 ms
53,504 KB
testcase_10 AC 45 ms
53,888 KB
testcase_11 AC 44 ms
53,376 KB
testcase_12 AC 44 ms
53,888 KB
testcase_13 AC 45 ms
53,760 KB
testcase_14 AC 44 ms
53,248 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