ABC095A - Something on It
#include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int amt = 700; string s; cin.tie(0); ios::sync_with_stdio(false); cin >> s; REP(i, s.length()) { if (s[i] == 'o') { amt += 100; } } cout << amt << "\n"; return 0; }