結果
問題 | No.1883 SLASH |
ユーザー |
|
提出日時 | 2022-11-29 21:30:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 296 bytes |
コンパイル時間 | 2,007 ms |
コンパイル使用メモリ | 165,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 08:23:42 |
合計ジャッジ時間 | 2,855 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; std::cin >> s; int a=int(s[0]),b=int(s[1]),c=int(s[2]); int maxx=max(max(a,b),max(b,c)),minn=min(min(a,b),min(b,c)); std::cout << maxx-minn << '\n'; return 0; }