結果
| 問題 |
No.222 引き算と足し算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-31 21:51:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 153 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 65,024 KB |
| 最終ジャッジ日時 | 2024-11-17 02:31:28 |
| 合計ジャッジ時間 | 3,569 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 RE * 24 |
ソースコード
X = input().split('+')
if len(X) == 2:
print(int(X[0]) - int(X[1]))
else:
X = list(map(int, X[0].split('-')))
print(X[0] + X[1])