結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2018-12-28 18:48:35 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 32,128 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 15:01:27 |
合計ジャッジ時間 | 679 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d %d",&xp,&yp); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>#include <math.h>int main(){int xp,yp;scanf("%d %d",&xp,&yp);int r = floor(2*pow(xp*xp+yp*yp,0.5))+1;printf("%d\n",r);}