結果
問題 |
No.1883 SLASH
|
ユーザー |
|
提出日時 | 2022-04-15 21:14:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 2,241 ms |
コンパイル使用メモリ | 192,532 KB |
最終ジャッジ日時 | 2025-01-28 17:46:55 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long int_t; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int res = max(s[0], max(s[1], s[2])) - min(s[0], min(s[1], s[2])); cout << res << endl; return 0; }