結果

問題 No.172 UFOを捕まえろ
ユーザー UK_kkbj
提出日時 2017-06-20 17:05:56
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 800 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-02 07:18:22
合計ジャッジ時間 1,190 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<math.h>
int main(){
  short int x,y,r;
  scanf("%hd%hd%hd",&x, &y, &r);
  double root2;
  root2 = sqrt(2);
  double manhdis;
  manhdis = x+y+r*root2;
  int i = 0;
  while(i < manhdis){
    i++;
  }
  printf("%d",i);
  return 0;
}
0