結果

問題 No.1883 SLASH
ユーザー publfl
提出日時 2022-03-25 21:23:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 44,160 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 05:11:23
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <algorithm>

int x[110];
int main()
{
	scanf("%1d%1d%1d",&x[1],&x[2],&x[3]);
	std::sort(x+1,x+4);
	printf("%d",x[3]-x[1]);
}
0