結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             bal4u
                         | 
                    
| 提出日時 | 2019-04-09 21:55:27 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 5,000 ms | 
| コード長 | 305 bytes | 
| コンパイル時間 | 735 ms | 
| コンパイル使用メモリ | 29,056 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-05 02:58:07 | 
| 合計ジャッジ時間 | 1,466 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 6 | 
ソースコード
// yukicoder: No.98 円を描こう
// 2019.4.9 bal4u
// 三平方の定理
#include <stdio.h>
#include <math.h>
int main()
{
	long long x, y, a, ans;
	scanf("%lld%lld", &x, &y);
	a = 4*(x * x + y * y);
	ans = (long long)sqrt((double)a);
	if (ans * ans <= a) ans++;
	printf("%lld\n", ans);
	return 0;
}
            
            
            
        
            
bal4u