結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 13:06:03 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 146 bytes |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 23,040 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 12:13:41 |
| 合計ジャッジ時間 | 718 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d %d",&x,&y);
| ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<math.h>
int main(){
int x,y;
scanf("%d %d",&x,&y);
printf("%d\n",(int)(sqrt((double)(2*(x*x+y*y)))+1));
return 0;
}