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