結果
| 問題 |
No.131 マンハッタン距離
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-06-02 10:01:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2,009 ms / 5,000 ms |
| コード長 | 187 bytes |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 53,980 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 05:23:20 |
| 合計ジャッジ時間 | 13,450 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int x,y,d;
int c=0;
cin>>x>>y>>d;
for(int i=d;i>=0;i--){
if(i<=y&&d-i<=x) c++;
}
cout<<c<<endl;
}
kongarishisyamo