結果

問題 No.126 2基のエレベータ
ユーザー chiwakii
提出日時 2015-01-13 23:40:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 2,417 ms
コンパイル使用メモリ 58,552 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 05:32:03
合計ジャッジ時間 1,470 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 5 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>

using namespace std;
int main(void)
{
	int A,B,S;
	cin >> A >> B >> S;
	S*=2;
	S-=(abs(S-A)<abs(S-B))?abs(S-A):abs(S-B)-A+1;
	cout << S << endl;
}
0