結果
問題 | No.98 円を描こう |
ユーザー | tottoripaper |
提出日時 | 2014-12-09 23:27:12 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 333 ms |
コンパイル使用メモリ | 25,468 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-02 12:17:28 |
合計ジャッジ時間 | 997 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,384 KB |
testcase_04 | AC | 1 ms
4,384 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
#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;} } }