結果

問題 No.131 マンハッタン距離
ユーザー taba
提出日時 2017-05-20 09:21:34
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 1,433 ms
コンパイル使用メモリ 130,132 KB
最終ジャッジ日時 2025-01-05 00:29:25
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>
#include <set>
#include <iostream>
#include <numeric>

using namespace std;

int main(){
	int x,y,d;
	-scanf("%d%d%d",&x,&y,&d);
	int t=min({x+1,y+1,d+1});
	printf("%d\n",d>min(x,y)?0:t);
	return 0;
}
0