結果

問題 No.1883 SLASH
ユーザー Tatsuyaaaa
提出日時 2022-03-25 21:21:14
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 196,924 KB
最終ジャッジ日時 2025-01-28 11:26:12
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define ll long long

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    string S;
    cin >> S;
    sort(S.begin(), S.end());
    cout << S[2]-S[0] << "\n";
    return 0;
}
0