Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (test && (num > Convert.ToInt32(maxstr)))
- {
- Console.WriteLine(-1);
- break;
- }
- numMas = num.ToString().ToCharArray();
- for (int i = 0; i < str.Length; i++)
- {
- if ((str[i] != '?') && (str[i] != numMas[i]))
- {
- check = false;
- break;
- }
- }
- if ((str.Length == numMas.Length) && check)
- {
- Console.WriteLine(num);
- break;
- }
- if (num > Convert.ToInt32(maxstr))
- {
- Console.WriteLine(-1);
- break;
- }
- check = true;
- num += k;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement