結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
cww
|
| 提出日時 | 2016-08-03 22:54:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 1,660 ms |
| コンパイル使用メモリ | 166,516 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-06 23:45:56 |
| 合計ジャッジ時間 | 2,106 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
struct btk{btk(){ios::sync_with_stdio(false);cin.tie(0);}}btk;
int main()
{
int X, Y;
cin >> X >> Y;
cout << static_cast<int>( sqrt( pow( X, 2 ) + pow( Y, 2 ) ) * 2 ) + 1 << endl;
return 0;
}
cww