Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- ios_base::sync_with_stdio(0);
- int t, a;
- int wynik = 1;
- string s;
- cin >> t;
- while(t) {
- cin >> a;
- cin.ignore(50, ' ');
- getline(cin, s);
- if (s[0] == '?')
- wynik *= 9;
- for (int i = 1; i < s.length(); ++i) {
- if (s[i] == '?') {
- wynik *= 10;
- }
- }
- cout << wynik << endl;
- wynik = 1;
- t--;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement