結果
問題 | No.1218 Something Like a Theorem |
ユーザー |
👑 ![]() |
提出日時 | 2020-09-04 21:33:35 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 821,440 KB |
最終ジャッジ日時 | 2024-11-26 12:04:04 |
合計ジャッジ時間 | 5,380 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 WA * 2 TLE * 1 MLE * 1 |
ソースコード
from math import sqrtn,z=map(int,input().split())if n>=3:print("No")exit()X=[]x=1while x*x<z*z:X.append(x*x)x+=1D=[a+b for a in X for b in X]if z*z in D:print("Yes")else:print("No")