結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2014-12-09 23:31:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 205 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 22,912 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 19:00:27 |
| 合計ジャッジ時間 | 694 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
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<=30000;i++){
if(sq < i*i){printf("%d\n", i); return 0;}
}
}
tottoripaper