結果
| 問題 |
No.222 引き算と足し算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-13 15:36:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 1,000 ms |
| コード長 | 107 bytes |
| コンパイル時間 | 1,564 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 53,636 KB |
| 最終ジャッジ日時 | 2024-06-22 00:38:05 |
| 合計ジャッジ時間 | 4,213 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
S = input() I = 1 while S[I].isdigit(): I += 1 print(int(S[0:I]) + (-1) ** (S[I] == "+") * int(S[I + 1:]))