結果

問題 No.48 ロボットの操縦
ユーザー 半匠・鳳・みけねこ太郎
提出日時 2024-08-05 13:55:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 465 ms
コンパイル使用メモリ 37,888 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-08-05 13:55:16
合計ジャッジ時間 1,682 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main(){
    int x,y,l;
    scanf("%d %d %d", &x, &y, &l);
    printf("%d\n", (int)ceil( (double)abs(x)/l ) + (int)ceil( (double)abs(y)/l ));

    return 0;
}
0