結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2015-10-31 10:00:30 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 389 bytes |
| 記録 | |
| コンパイル時間 | 307 ms |
| コンパイル使用メモリ | 77,824 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-25 23:50:13 |
| 合計ジャッジ時間 | 1,659 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int main(){
int x, y, l;
cin>> x>> y>> l;
int cnt = 0;
if(x!=0){
if(y>=0){
cnt++;
}else{
cnt+=2;
}
}
if(x<0) x = -x;
cnt += ceil((double)x/l);
if(y<0) y = -y;
cnt += ceil((double)y/l);
cout<< cnt<< endl;
return 0;
}
ikd