結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2020-02-04 20:57:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 567 ms |
コンパイル使用メモリ | 66,236 KB |
最終ジャッジ日時 | 2025-01-08 22:07:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | WA * 6 |
ソースコード
#include <iostream> int main() { using ll = long long; ll x, y;std::cin >> x >> y; x = std::abs(x), y=std::abs(y); const ll r = x*x+y*y; ll inf = 0, sup = 20000; while(sup-inf>1){ const ll mid = (inf+sup)/2; (mid*mid>r?sup:inf)=mid; } std::cout << sup<< std::endl; return 0; }