結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tottoripaper
                         | 
                    
| 提出日時 | 2014-12-09 23:27:12 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 205 bytes | 
| コンパイル時間 | 202 ms | 
| コンパイル使用メモリ | 22,912 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-11 19:00:07 | 
| 合計ジャッジ時間 | 848 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 2 WA * 4 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d %d", &X, &Y);
      |     ~~~~~^~~~~~~~~~~~~~~~~
            
            ソースコード
#include <cstdio>
int main(){
    int X, Y;
    scanf("%d %d", &X, &Y);
    int sq = 4 * (X*X + Y*Y);
    for(int i=1;i<=20000;i++){
        if(sq < i*i){printf("%d\n", i); return 0;}
    }
}
            
            
            
        
            
tottoripaper