結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2016-09-01 20:49:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 59,972 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 17:02:24 |
合計ジャッジ時間 | 1,338 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main() { int X, Y, L; cin >> X >> Y >> L; int c = 0; if (Y < 0) ++c; if (X != 0) ++c; c += ceil(abs(X) / static_cast<double>(L)); c += ceil(abs(Y) / static_cast<double>(L)); cout << c << endl; return 0; }