結果
| 問題 |
No.131 マンハッタン距離
|
| コンテスト | |
| ユーザー |
a
|
| 提出日時 | 2023-02-04 18:57:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 346 bytes |
| コンパイル時間 | 623 ms |
| コンパイル使用メモリ | 74,328 KB |
| 実行使用メモリ | 13,880 KB |
| 最終ジャッジ日時 | 2024-07-03 15:38:52 |
| 合計ジャッジ時間 | 7,088 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
#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