結果
| 問題 | No.1883 SLASH | 
| コンテスト | |
| ユーザー |  root__786 | 
| 提出日時 | 2022-03-25 21:37:33 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 282 bytes | 
| コンパイル時間 | 1,717 ms | 
| コンパイル使用メモリ | 192,192 KB | 
| 最終ジャッジ日時 | 2025-01-28 11:47:16 | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
        
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
        string s;
        cin>>s;
        int a,b,c;
        a=s[0]-'0';
        b=s[1]-'0';
        c=s[2]-'0';
        cout<<(max(max(a, b), c)-min(min(a, b), c))<<endl;
    
    return 0;
}
            
            
            
        