結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-07-28 15:17:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 55,368 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-02 15:01:50 |
合計ジャッジ時間 | 1,274 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 7 |
ソースコード
#include <iostream> using namespace std; int main() { 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"; }