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