結果
問題 |
No.1218 Something Like a Theorem
|
ユーザー |
|
提出日時 | 2022-01-10 13:37:50 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 82,400 KB |
実行使用メモリ | 67,432 KB |
最終ジャッジ日時 | 2024-11-14 10:50:44 |
合計ジャッジ時間 | 2,198 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 16 |
ソースコード
n,z = mp(int,input().split()) import sys if n >= 3: print('No') exit() if n == 1: if z > 1: print('No') exit() else: print('Yes') exit() s =set() for x in range(1,z): s.add(x * x) for x in range(1,z): if z * z - x * x in s: print('Yes') exit() print('No')