結果
問題 | No.1218 Something Like a Theorem |
ユーザー | mesame3993 |
提出日時 | 2021-11-18 21:23:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 484 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 87,052 KB |
実行使用メモリ | 210,492 KB |
最終ジャッジ日時 | 2023-08-27 15:39:50 |
合計ジャッジ時間 | 3,361 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 163 ms
210,444 KB |
testcase_01 | AC | 62 ms
71,400 KB |
testcase_02 | AC | 62 ms
71,240 KB |
testcase_03 | AC | 64 ms
71,492 KB |
testcase_04 | AC | 65 ms
71,248 KB |
testcase_05 | AC | 62 ms
71,308 KB |
testcase_06 | AC | 166 ms
210,492 KB |
testcase_07 | AC | 162 ms
210,388 KB |
testcase_08 | AC | 162 ms
210,432 KB |
testcase_09 | WA | - |
testcase_10 | AC | 168 ms
210,480 KB |
testcase_11 | WA | - |
testcase_12 | AC | 160 ms
210,376 KB |
testcase_13 | AC | 64 ms
71,264 KB |
testcase_14 | AC | 63 ms
71,272 KB |
testcase_15 | AC | 66 ms
71,480 KB |
testcase_16 | AC | 66 ms
71,368 KB |
testcase_17 | AC | 63 ms
71,408 KB |
ソースコード
def main(): from sys import stdin readline=stdin.readline #n = int(readline()) #s = input() n,z = map(int, readline().split()) #A = list(map(int, readline().split())) if n >= 3: print('No') elif n == 1: if z >= 2: print('Yes') else: print('No') else: st = set(y for y in range(1, 10**6)) z *= z for x in range(1, 10**6): x *- x if z-x in st: print('Yes') break else: print('No') main()