結果
問題 | No.2185 平方数の下6桁 |
ユーザー | vwxyz |
提出日時 | 2023-01-14 19:14:49 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 222 ms / 2,000 ms |
コード長 | 794 bytes |
コンパイル時間 | 1,010 ms |
コンパイル使用メモリ | 10,776 KB |
実行使用メモリ | 10,572 KB |
最終ジャッジ日時 | 2023-08-27 00:30:16 |
合計ジャッジ時間 | 11,018 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 215 ms
10,416 KB |
testcase_01 | AC | 220 ms
10,496 KB |
testcase_02 | AC | 216 ms
10,400 KB |
testcase_03 | AC | 218 ms
10,360 KB |
testcase_04 | AC | 219 ms
10,500 KB |
testcase_05 | AC | 219 ms
10,396 KB |
testcase_06 | AC | 215 ms
10,360 KB |
testcase_07 | AC | 218 ms
10,284 KB |
testcase_08 | AC | 220 ms
10,360 KB |
testcase_09 | AC | 216 ms
10,412 KB |
testcase_10 | AC | 218 ms
10,424 KB |
testcase_11 | AC | 219 ms
10,396 KB |
testcase_12 | AC | 215 ms
10,380 KB |
testcase_13 | AC | 220 ms
10,400 KB |
testcase_14 | AC | 219 ms
10,420 KB |
testcase_15 | AC | 218 ms
10,552 KB |
testcase_16 | AC | 216 ms
10,356 KB |
testcase_17 | AC | 220 ms
10,280 KB |
testcase_18 | AC | 214 ms
10,404 KB |
testcase_19 | AC | 218 ms
10,412 KB |
testcase_20 | AC | 214 ms
10,356 KB |
testcase_21 | AC | 222 ms
10,572 KB |
testcase_22 | AC | 212 ms
10,356 KB |
testcase_23 | AC | 215 ms
10,432 KB |
testcase_24 | AC | 219 ms
10,316 KB |
testcase_25 | AC | 213 ms
10,476 KB |
testcase_26 | AC | 216 ms
10,396 KB |
testcase_27 | AC | 221 ms
10,276 KB |
testcase_28 | AC | 217 ms
10,360 KB |
testcase_29 | AC | 218 ms
10,356 KB |
testcase_30 | AC | 213 ms
10,360 KB |
testcase_31 | AC | 219 ms
10,432 KB |
testcase_32 | AC | 219 ms
10,416 KB |
testcase_33 | AC | 221 ms
10,312 KB |
testcase_34 | AC | 215 ms
10,432 KB |
testcase_35 | AC | 216 ms
10,356 KB |
testcase_36 | AC | 213 ms
10,540 KB |
ソースコード
import bisect import copy import decimal import fractions import heapq import itertools import math import random import sys import time from collections import Counter,deque,defaultdict from functools import lru_cache,reduce from heapq import heappush,heappop,heapify,heappushpop,_heappop_max,_heapify_max def _heappush_max(heap,item): heap.append(item) heapq._siftdown_max(heap, 0, len(heap)-1) def _heappushpop_max(heap, item): if heap and item < heap[0]: item, heap[0] = heap[0], item heapq._siftup_max(heap, 0) return item from math import gcd as GCD read=sys.stdin.read readline=sys.stdin.readline readlines=sys.stdin.readlines write=sys.stdout.write S=int(readline()) ans="NO" for i in range(1000000): if S==i**2%(10**6): ans="YES" print(ans)