結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2020-03-27 08:06:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 1,632 ms |
コンパイル使用メモリ | 160,648 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 08:15:52 |
合計ジャッジ時間 | 2,188 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long template<typename T> void fin(T a){ cout<<a<<endl; exit(0); } signed main(){ int x,y;cin>>x>>y; int A=x*x+y*y;A*=4; for(int i=1;;i++)if(i*i>A)fin(i); }