結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-07-09 01:14:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 548 ms |
| コンパイル使用メモリ | 66,944 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-06 20:25:31 |
| 合計ジャッジ時間 | 1,409 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 20 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int x = 0, y = 0, l = 0, res = 0;
cin >> x >> y >> l;
if(y < 0){ res += 2; }
else if(x != 0){ res += 1; }
x = abs(x); y = abs(y);
res += (x+l-1)/l;
res += (x+l-1)/l;
cout << res << endl;
return 0;
}
r2en_