結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-07-28 15:25:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 421 ms |
コンパイル使用メモリ | 53,720 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 15:01:58 |
合計ジャッジ時間 | 1,176 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 6 |
ソースコード
#include <iostream> using namespace std; int main() { long long int x, y, l,ans=0; cin >> x >> y >> l; x = abs(x); if (y < 0) ans += 2; y = abs(y); ans += y / l + (y % l != 0); ans += (x != 0) + x / l + (x % l != 0); cout << ans << "\n"; }