結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
Eki1009
|
| 提出日時 | 2020-11-16 20:54:51 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 1,176 ms |
| コンパイル使用メモリ | 209,236 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-15 05:00:51 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int x, y, l;
cin >> x >> y >> l;
int ans = 0;
if(x==0){
if(y<0)ans += 2;
}else{
if(y<0)ans += 2; else ans += 1;
}
x = abs(x);
y = abs(y);
ans += (x+l-1)/l + (y+l-1)/l;
cout << ans << endl;
}
Eki1009