結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
omu
|
| 提出日時 | 2015-11-23 14:44:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 741 ms |
| コンパイル使用メモリ | 70,404 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-13 17:16:19 |
| 合計ジャッジ時間 | 1,552 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include <vector>
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <utility>
#include <map>
#include <cmath>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
int main(){
int x,y,l;
cin >> x >> y >> l;
int ans = 0;
if(y < 0)ans++;
if(y)ans+=ceil(double(abs(y))/l);
if(x)ans+=ceil(double(abs(x))/l)+1;
cout << ans << endl;
}
omu