結果
| 問題 | No.222 引き算と足し算 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-07-11 01:49:59 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| + 240µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-25 14:53:24 |
| 合計ジャッジ時間 | 5,255 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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