結果
| 問題 | No.222 引き算と足し算 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-16 05:51:40 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 1,000 ms |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 77,468 KB |
| 最終ジャッジ日時 | 2025-12-03 20:24:57 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
x="" o=None y=list(raw_input()) if y[0]=="+" or y[0]=="-": x+=y.pop(0) while y[0].isdigit(): x+=y.pop(0) o=["+","-"][y.pop(0)=="+"] y="".join(y) print eval(x+o+y)
taba