結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2016-02-15 00:08:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 54,260 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 06:43:22 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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