結果
| 問題 |
No.8062 A + B
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2020-03-12 16:20:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-18 12:46:23 |
| 合計ジャッジ時間 | 991 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
A,B=input().split()
if B[0]=='-':
print(int(A)+int(B))
else:
P=A+B
if P[0]!='-':
while len(P)!=1 and P[0]=='0':
P=P[1:len(P)]
else:
while len(P)!=2 and P[1]=='0':
P=P[0]+P[2:len(P)]
if P=='-0':
P=0
print(P)
googol_S0