結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-31 02:59:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 1,456 ms |
| コンパイル使用メモリ | 192,612 KB |
| 最終ジャッジ日時 | 2025-02-20 16:06:36 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:13:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | system("pause");
| ~~~~~~^~~~~~~~~
ソースコード
// コピーして使う!
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<long long>;
int main() {
ll xp, yp;
cin >> xp >> yp;
ll r = pow(xp * xp + yp * yp, 0.5)*2+1;
cout << r << endl;
system("pause");
}