結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2016-02-24 22:46:34 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 23,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 13:24:43 |
合計ジャッジ時間 | 730 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d %d",&x,&y); | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<math.h> int main() { int x,y; int d; double distance; scanf("%d %d",&x,&y); //原点から(x,y)の距離を計算 distance = sqrt(x*x + y*y); printf("%d",(int)distance); return 0; }