結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2016-02-15 00:08:35 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 69,504 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-10 12:35:52 |
| 合計ジャッジ時間 | 1,218 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 7 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int x, y, l;
long long ans = 0;
cin >> x >> y >> l;
if (y != 0)
ans += (abs(y)-1) / l + 1;
if (x != 0)
ans += 1 + (abs(x)-1) / l + 1;
cout << ans << endl;
return 0;
}
h_noson