結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2023-12-29 00:25:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 449 bytes |
| コンパイル時間 | 1,935 ms |
| コンパイル使用メモリ | 193,040 KB |
| 最終ジャッジ日時 | 2025-02-18 15:05:47 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
int x, y, l;
cin >> x >> y >> l;
int ans = (x == 0 || y == 0 ? 0 : 1);
ans += (abs(x) + l - 1) / l;
ans += (abs(y) + l - 1) / l;
cout << ans << endl;
return 0;
}
a01sa01to