結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2015-09-05 18:19:49 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 183 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 31,488 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 03:52:47 |
合計ジャッジ時間 | 906 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d", &x, &y); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>#include <cmath>using namespace std;int main(){int x, y;scanf("%d %d", &x, &y);printf("%d\n", (int)(floor(sqrt(x * x + y * y) * 2) + 1));return 0;}