結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2016-12-21 13:02:34 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 22,656 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-14 12:13:39 |
合計ジャッジ時間 | 834 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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)(x*x+y*y))+1); return 0; }