結果

問題 No.965 門松列が嫌い
ユーザー leaf_1415
提出日時 2020-01-13 20:27:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 3,088 ms
コンパイル使用メモリ 55,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-21 16:13:06
合計ジャッジ時間 1,409 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#define llint long long

using namespace std;

llint a, b, c;

int main(void)
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	cin >> a >> b >> c;
	
	if(a < b){
		cout << b-max(a, c) << endl;
	}
	else{
		cout << min(a, c)-b << endl;
	}
	
	return 0;
}
0