結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2019-03-28 17:12:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 1,355 ms |
コンパイル使用メモリ | 166,340 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 06:58:58 |
合計ジャッジ時間 | 1,964 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int x, y; cin >> x >> y; int d = ceil(sqrt(x*x + y*y)); cout << 2*d+(sqrt(x*x + y*y) == d) << endl; return 0; }