結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-22 18:26:05 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 1,075 ms |
| コンパイル使用メモリ | 208,236 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-15 20:15:08 |
| 合計ジャッジ時間 | 8,186 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, d;
scanf("%d %d %d", &x, &y, &d);
int num = 0;
for(int i = 0; i <= x; i++){
for(int j = 0; j <= y; j++){
if(i + j == d) num++;
}
}
printf("%d", num);
return 0;
}