結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2020-02-04 20:57:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 584 ms |
コンパイル使用メモリ | 66,376 KB |
最終ジャッジ日時 | 2025-01-08 22:07:06 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 = -1, 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; }