結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2017-05-20 09:20:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 430 bytes |
| コンパイル時間 | 1,161 ms |
| コンパイル使用メモリ | 129,864 KB |
| 最終ジャッジ日時 | 2025-01-05 00:29:19 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 11 |
ソースコード
#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>t?0:t);
return 0;
}
taba