結果
| 問題 | No.131 マンハッタン距離 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-08-07 01:49:41 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 173 bytes | 
| コンパイル時間 | 1,921 ms | 
| コンパイル使用メモリ | 192,176 KB | 
| 最終ジャッジ日時 | 2025-01-07 10:56:17 | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 19 WA * 5 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int x,y,d;
    cin>>x>>y>>d;
    cout<<d+1-max(0,d-x)-max(0,d-y)<<endl;
    return 0;
}
            
            
            
        