結果

問題 No.2185 平方数の下6桁
ユーザー タコイモタコイモ
提出日時 2023-01-13 22:18:38
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 87,380 KB
最終ジャッジ日時 2023-08-26 04:02:53
合計ジャッジ時間 7,151 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
87,312 KB
testcase_01 AC 149 ms
87,060 KB
testcase_02 AC 148 ms
87,292 KB
testcase_03 AC 157 ms
87,208 KB
testcase_04 AC 149 ms
87,200 KB
testcase_05 AC 148 ms
87,380 KB
testcase_06 AC 150 ms
87,228 KB
testcase_07 AC 149 ms
87,312 KB
testcase_08 AC 147 ms
87,164 KB
testcase_09 AC 149 ms
87,060 KB
testcase_10 AC 149 ms
87,196 KB
testcase_11 AC 152 ms
87,272 KB
testcase_12 AC 157 ms
87,264 KB
testcase_13 AC 155 ms
87,104 KB
testcase_14 AC 147 ms
87,376 KB
testcase_15 AC 148 ms
87,296 KB
testcase_16 AC 155 ms
87,264 KB
testcase_17 AC 150 ms
87,296 KB
testcase_18 AC 151 ms
87,108 KB
testcase_19 AC 150 ms
87,264 KB
testcase_20 AC 148 ms
87,264 KB
testcase_21 AC 154 ms
87,272 KB
testcase_22 AC 156 ms
87,228 KB
testcase_23 AC 146 ms
87,208 KB
testcase_24 AC 148 ms
87,184 KB
testcase_25 AC 147 ms
87,268 KB
testcase_26 AC 149 ms
87,296 KB
testcase_27 AC 149 ms
87,260 KB
testcase_28 AC 154 ms
87,216 KB
testcase_29 AC 153 ms
87,292 KB
testcase_30 AC 149 ms
87,296 KB
testcase_31 AC 146 ms
87,304 KB
testcase_32 AC 149 ms
87,172 KB
testcase_33 AC 145 ms
87,180 KB
testcase_34 AC 149 ms
87,380 KB
testcase_35 AC 157 ms
87,224 KB
testcase_36 AC 146 ms
87,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

check = set()
s = 1
t = 10**6
check.add(0)
for i in range(2*(10**6)):
  s += 2*i - 1
  check.add(s%t)
N = int(input())
if N in check:
  print('YES')
else:
  print('NO')
  
0