結果
問題 |
No.1883 SLASH
|
ユーザー |
|
提出日時 | 2022-03-25 21:22:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 783 ms |
コンパイル使用メモリ | 92,712 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 05:10:13 |
合計ジャッジ時間 | 1,420 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> #include <fstream> #include <cmath> #include <stack> #include <numeric> #include <iomanip> 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'; int mav = max(a,max(b,c)); int miv = min(a,min(b,c)); cout << mav -miv << endl; }