結果
| 問題 | No.131 マンハッタン距離 |
| コンテスト | |
| ユーザー |
a
|
| 提出日時 | 2023-02-04 18:57:46 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 88,928 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-03-24 23:42:34 |
| 合計ジャッジ時間 | 50,498 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 TLE * 8 |
ソースコード
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
int x,y,d; cin >>x>>y>>d;
int counter = 0;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= y; j++) {
if (i + j == d)counter += 1;
//cout << i << "," << j << endl;
}
}
cout << counter << endl;
}
a