結果
問題 | No.2392 二平方和 |
ユーザー | eroge_master |
提出日時 | 2023-07-28 23:00:25 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 227 ms / 2,000 ms |
コード長 | 883 bytes |
コンパイル時間 | 614 ms |
コンパイル使用メモリ | 32,512 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-16 06:57:26 |
合計ジャッジ時間 | 2,816 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,248 KB |
testcase_02 | AC | 1 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | AC | 1 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | AC | 1 ms
5,376 KB |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | AC | 1 ms
5,376 KB |
testcase_20 | AC | 202 ms
5,376 KB |
testcase_21 | AC | 207 ms
5,376 KB |
testcase_22 | AC | 217 ms
5,376 KB |
testcase_23 | AC | 224 ms
5,376 KB |
testcase_24 | AC | 227 ms
5,376 KB |
testcase_25 | AC | 227 ms
5,376 KB |
ソースコード
#include<assert.h> #include<complex.h> #include<ctype.h> #include<errno.h> #include<fenv.h> #include<float.h> #include<inttypes.h> #include<iso646.h> #include<limits.h> #include<locale.h> #include<math.h> #include<setjmp.h> #include<signal.h> #include<stdalign.h> #include<stdarg.h> #include<stdatomic.h> #include<stdbool.h> #include<stddef.h> #include<stdint.h> #include<stdio.h> #include<stdlib.h> #include<stdnoreturn.h> #include<string.h> #include<tgmath.h> #include<time.h> #include<wchar.h> #include<wctype.h> int main() { int P; scanf("%d", &P); bool hantei = false; for (int i = 1; i <= sqrt(P); i++) { for (int j = 1; j <= sqrt(P); j++) { if (i * i + j * j == P) { hantei = true; break; } } } if (hantei) { printf("Yes\n"); } else { printf("No\n"); } }