結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
moshiya02
|
| 提出日時 | 2018-03-16 02:49:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 520 ms |
| コンパイル使用メモリ | 62,040 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 14:05:12 |
| 合計ジャッジ時間 | 1,457 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 7 |
ソースコード
#include<iostream>
#include<complex>
#include<cmath>
using namespace std;
int main(){
int x, y, l;
cin >>x>>y>>l;
double c;
c = abs( (double)y / l );
c = ceil(c);
if(x!=0){
c ++;
c += abs( (double)x/l );
c = ceil(c);
}
cout << c << endl;
return 0;
}
moshiya02