結果

問題 No.172 UFOを捕まえろ
ユーザー Elk
提出日時 2018-06-10 00:14:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 37,632 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 13:05:59
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    int x, y, r;

    scanf("%d %d %d", &x, &y, &r);

    printf("%d\n", (abs(x) + abs(y)) + (int)(r*sqrt(2)) + 1);

    return 0;
}
0