結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
ninhydrin_
|
| 提出日時 | 2015-04-02 15:28:49 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 29,512 KB |
| 最終ジャッジ日時 | 2026-02-23 18:13:39 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d%d%d",&x,&y,&r);
| ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
int x,y,r;
scanf("%d%d%d",&x,&y,&r);
x=abs(x)+abs(y)+sqrt(2)*r;
printf("%d\n",x+1);
return 0;
}
ninhydrin_