結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2021-11-27 23:48:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 1,582 ms |
コンパイル使用メモリ | 166,312 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 15:00:57 |
合計ジャッジ時間 | 2,285 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; long long x, y, l; cin >> x >> y >> l; if (y >= 0){ if(x == 0) cout << int(ceil(x/l))+int(ceil(y/l)) << endl; else cout << int(ceil(x/l))+int(ceil(y/l))+1 << endl; }else{ cout << int(ceil(x/l))+int(ceil(y/l))+2 << endl; } return 0; }