結果
問題 | No.222 引き算と足し算 |
ユーザー |
|
提出日時 | 2022-01-19 14:40:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 148 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-23 13:49:31 |
合計ジャッジ時間 | 2,588 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
ソースコード
s=input()for i in range(1,len(s)):if s[i] in '+-':breaka=int(s[:i])b=int(s[i+1:])if s[i]=='+':print(a-b)else:print(a+b)