結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2017-11-11 16:00:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 1,410 ms |
コンパイル使用メモリ | 165,888 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-24 19:06:30 |
合計ジャッジ時間 | 1,894 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 4 WA * 2 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { double xp, yp; cin >> xp >> yp; double ans = sqrt(xp * xp + yp * yp) * 2; if(xp == yp){ cout << ans << endl; }else{ cout << ans + 1 << endl; } }