結果
| 問題 |
No.222 引き算と足し算
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-07-11 01:49:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 1,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-11 17:00:02 |
| 合計ジャッジ時間 | 1,869 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
S=input()
for i in range(1,len(S)):
if 48<=ord(S[i-1])<=57 and ord(S[i])<=45:
x=int(S[:i])
y=int(S[i+1:])
if ord(S[i])==45:
print(x+y)
else:
print(x-y)
titia