結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-01-17 15:21:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 578 ms |
| コンパイル使用メモリ | 58,120 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-12-24 06:42:25 |
| 合計ジャッジ時間 | 1,587 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 1 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<cstdio>
using namespace std;
int main(){
long int x1,x2,y1,y2,a,b,ans;
cin >> x1 >> y1 >> x2 >> y2;
if(x1-x2>0) a=x1-x2;
else a=(x1-x2)*-1;
if(y1-y2>0) b=y1-y2;
else b=(y1-y2)*-1;
ans = (a+b)*5;
cout << (float)ans*0.1;
return 0;
}
focus