Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class BitwisePasswords
- {
- static void Main()
- {
- int counter = 0;
- string input = Console.ReadLine(); //"***101***";
- for (int i = 0; i < input.Length; i++)
- {
- if (input[i] == '*')
- {
- counter++;
- }
- }
- long l = (long)Math.Pow(2, counter);
- Console.WriteLine(l);
- }
- }
Add Comment
Please, Sign In to add comment