結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-06 21:24:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 1,016 ms |
| コンパイル使用メモリ | 157,656 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 19:20:01 |
| 合計ジャッジ時間 | 1,724 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
typedef long long Int;
#define REP(i,n) for(int (i)=0;(i)<(int)(n);++(i))
int main() {
int X, Y, L; cin >> X >> Y >> L;
int ans = 0;
{ if (X < 0) X = -X; if (X > 0) ans++; }
if (Y < 0) { ans++; Y = -Y; }
ans += (X + L - 1) / L;
ans += (Y + L - 1) / L;
cout << ans << endl;
}