結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2020-03-22 15:23:34 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 302 bytes |
| 記録 | |
| コンパイル時間 | 1,246 ms |
| コンパイル使用メモリ | 179,292 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 13:15:02 |
| 合計ジャッジ時間 | 4,904 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int64_t X, Y, L;
cin >> X >> Y >> L;
int res = 0;
if (Y < 0) res++;
if (X != 0) res++;
res += (abs(X) + L - 1) / L;
res += (abs(Y) + L - 1) / L;
cout << res << '\n';
return 0;
}
kyo1