結果
| 問題 | No.98 円を描こう | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2015-08-05 14:48:36 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 134 bytes | 
| コンパイル時間 | 164 ms | 
| コンパイル使用メモリ | 31,616 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-18 03:30:38 | 
| 合計ジャッジ時間 | 719 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 4 WA * 2 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%d%d",&a,&b);
      | ~~~~~^~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#include <math.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%.0lf",sqrt(a*a+b*b+0.0)*2+0.9999);
return 0;
}
            
            
            
        