結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2020-06-10 06:25:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 1,182 ms |
コンパイル使用メモリ | 93,400 KB |
最終ジャッジ日時 | 2025-01-11 00:39:58 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <cstdio>#include <iostream>#include <vector>#include <algorithm>#include <set>#include <map>#include <math.h>using namespace std;typedef long long int ll;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);int x,y; cin >> x >> y;printf("%d\n",(int)(sqrt(x*x+y*y)*2+1+1e-9));}