結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2015-12-26 22:42:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 1,266 ms |
コンパイル使用メモリ | 158,228 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 00:38:09 |
合計ジャッジ時間 | 3,037 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ long long int x,y,l; cin >> x >> y >> l; int count = 0; x = abs(x); y = abs(y); if(x > 0 and y > 0) count++; while(x > 0){ x -= l; count++; } while(y > 0){ y -= l; count++; } cout << count << endl; return 0; }