結果
問題 |
No.172 UFOを捕まえろ
|
ユーザー |
![]() |
提出日時 | 2017-06-20 13:35:31 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 29,696 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-02 05:06:02 |
合計ジャッジ時間 | 1,029 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 21 |
ソースコード
#include<stdio.h> #include<math.h> int main(){ short int x,y,r; scanf("%d%d%d",&x, &y, &r); int root2; root2 = sqrt(2); int manhdis; manhdis = sqrt(x*x+y*y)+r*root2; int i = 0; while(i < manhdis){ i++; } printf("%d",i); return 0; }