結果
問題 | No.1883 SLASH |
ユーザー |
![]() |
提出日時 | 2021-04-05 17:40:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 2,096 ms |
コンパイル使用メモリ | 165,952 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 04:42:10 |
合計ジャッジ時間 | 2,525 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int abc;cin >> abc;int a = abc / 100 % 10;int b = abc / 10 % 10;int c = abc / 1 % 10;int ans = max({a, b, c}) - min({a, b, c});cout << ans << endl;}