結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
ajiruajiru
|
| 提出日時 | 2020-02-05 02:06:08 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 304µs | |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 73,616 KB |
| 実行使用メモリ | 9,788 KB |
| 最終ジャッジ日時 | 2026-09-01 12:48:01 |
| 合計ジャッジ時間 | 1,939 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <iostream>
using namespace std;
int main(void) {
int x, y, l;
cin >> x >> y >> l;
int cnt = 0;
if (x != 0) cnt = 1;
if (y < 0) cnt = 2;
x = abs(x), y = abs(y);
cnt += (x + l - 1) / l;
cnt += (y + l - 1) / l;
cout << cnt << endl;
return 0;
}
ajiruajiru