結果
問題 |
No.98 円を描こう
|
ユーザー |
👑 |
提出日時 | 2020-02-19 19:10:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 187 bytes |
コンパイル時間 | 952 ms |
コンパイル使用メモリ | 67,712 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 14:09:49 |
合計ジャッジ時間 | 1,724 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <iostream> #include <cmath> using namespace std; #define EPS (1e-10) int main(){ int a,b;cin>>a>>b; int n = ceil((2*sqrt((a*a)+(b*b)))+EPS); cout << n << endl; }