結果
問題 | No.131 マンハッタン距離 |
ユーザー |
![]() |
提出日時 | 2016-02-18 02:06:03 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 54,796 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 07:44:52 |
合計ジャッジ時間 | 1,284 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
#include <iostream>using namespace std;int main() {long long x, y, d;cin >> x >> y >> d;cout << max(0LL, min(d,x) - max(0LL,d-y) + 1) << endl;return 0;}