結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
daradara_sanma
|
| 提出日時 | 2017-07-01 14:43:03 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 71,232 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-20 18:49:27 |
| 合計ジャッジ時間 | 1,376 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include<iostream>
#include<cstdio>
using namespace std;
int main() {
int x, y, l;
cin >> x >> y >> l;
int ans = 0;
if (x != 0) ans++;
if (x < 0) x = -x;
if (y < 0) {
ans++;
y = -y;
}
ans += (x + l - 1)/ l + (y+l-1) / l;
cout << ans << endl;
return 0;
}
daradara_sanma