結果
| 問題 | No.131 マンハッタン距離 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-10-22 18:39:06 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 281 bytes | 
| コンパイル時間 | 1,803 ms | 
| コンパイル使用メモリ | 194,360 KB | 
| 実行使用メモリ | 10,784 KB | 
| 最終ジャッジ日時 | 2025-10-22 18:39:15 | 
| 合計ジャッジ時間 | 8,668 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | TLE * 1 -- * 23 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
   long long x, y, d;
   cin >> x >> y >> d;
   
   long long num = 0;
   for(int i = 0; i <= x; i++){
     for(int j = 0; j <= y; j++){
       if(i + j == d) num++;
     } 
    } 
 
   cout << num <<endl;
   return 0;
} 
            
            
            
        