{"id":22442761,"url":"https://github.com/amitthecoder/bit-plus-plus","last_synced_at":"2025-03-27T10:18:06.329Z","repository":{"id":265010493,"uuid":"867920097","full_name":"amitthecoder/Bit-plus-plus","owner":"amitthecoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-05T02:35:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T12:17:52.998Z","etag":null,"topics":["codeforces","codeforces-problems","codeforces-solutions","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amitthecoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-05T02:31:24.000Z","updated_at":"2024-10-08T01:53:17.000Z","dependencies_parsed_at":"2024-11-27T08:15:53.191Z","dependency_job_id":null,"html_url":"https://github.com/amitthecoder/Bit-plus-plus","commit_stats":null,"previous_names":["amitthecoder/bit-plus-plus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitthecoder%2FBit-plus-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitthecoder%2FBit-plus-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitthecoder%2FBit-plus-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitthecoder%2FBit-plus-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitthecoder","download_url":"https://codeload.github.com/amitthecoder/Bit-plus-plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245823318,"owners_count":20678173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeforces","codeforces-problems","codeforces-solutions","kotlin"],"created_at":"2024-12-06T02:20:23.015Z","updated_at":"2025-03-27T10:18:06.306Z","avatar_url":"https://github.com/amitthecoder.png","language":"Kotlin","readme":"# Bit++\ntime limit per test : 1 second\n\nmemory limit per test : 256 megabytes\n\nThe classic programming language of Bitland is Bit++. This language is so peculiar and complicated.\n\nThe language is that peculiar as it has exactly one variable, called x. Also, there are two operations:\n\n- Operation ++ increases the value of variable x by 1.\n- Operation -- decreases the value of variable x by 1.\n\nA statement in language Bit++ is a sequence, consisting of exactly one operation and one variable x. The statement is written without spaces, that is, it can only contain characters \"+\", \"-\", \"X\". Executing a statement means applying the operation it contains.\n\nA programme in Bit++ is a sequence of statements, each of them needs to be executed. Executing a programme means executing all the statements it contains.\n\nYou're given a programme in language Bit++. The initial value of x is 0. Execute the programme and find its final value (the value of the variable when this programme is executed).\n\n### Input\nThe first line contains a single integer n (1 ≤ n ≤ 150) — the number of statements in the programme.\n\nNext n lines contain a statement each. Each statement contains exactly one operation (++ or --) and exactly one variable x (denoted as letter «X»). Thus, there are no empty statements. The operation and the variable can be written in any order.\n\n### Output\nPrint a single integer — the final value of x.\n\n## Examples\n### Input\n1\n\n++X\n### Output\n1\n### Input\n2\n\nX++\n\n--X\n### Output\n0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitthecoder%2Fbit-plus-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitthecoder%2Fbit-plus-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitthecoder%2Fbit-plus-plus/lists"}