結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-29 19:17:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-19 01:49:53 |
| 合計ジャッジ時間 | 1,832 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 20 |
ソースコード
n = int(input())
m = int(input())
a = n * 100
b = m * 10
if a == b:
print('Yes')
elif a < b:
while True:
a += b
b -= 10
if a == b:
print('Yes')
break
else:
print('No')
else:
while True:
b += a
a -= 100
if a == b:
print('Yes')
else:
print('No')