結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2016-12-21 13:03:33 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 465 ms |
コンパイル使用メモリ | 22,784 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 12:13:40 |
合計ジャッジ時間 | 621 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)(x*x+y*y)))+1); return 0; }