結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2017-07-27 10:37:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 574 ms |
コンパイル使用メモリ | 60,344 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 02:01:36 |
合計ジャッジ時間 | 1,503 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 8 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<utility> #include<cmath> using namespace std; int main(void){ int x,y,l,counter=0; cin>>x>>y>>l; x=abs(x); y=abs(y); if(x!=0&&y!=0)counter++; counter+=x/l; if(x%l!=0)counter++; counter+=y/l; if(y%l!=0)counter++; cout<<counter<<endl; }