結果
| 問題 |
No.8062 A + B
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2020-04-01 22:30:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-27 11:44:32 |
| 合計ジャッジ時間 | 1,026 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
X,Y = input().split()
Z = list(X+Y+'+0')
flag = True
while flag == True:
flag = False
for i in range(len(Z),-1,-1):
if (i == 0 or Z[i-1] in ["+","-"]) and Z[i] == "0" and len(Z)>i+1 and Z[i+1] not in ["+","-"]:
del Z[i]
flag = True
Z = "".join(Z)
#print (Z)
print (eval(Z))
SPD_9X2