Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- using System.Linq;
- using System.Globalization;
- using System.Collections.Generic;
- using System.Text;
- class MainClass
- {
- public static void Main(string[] args)
- {
- string input = Console.ReadLine();
- Match before = Regex.Match(input, @".*@");
- Match after = Regex.Match(input, @"@.*");
- int b = 0;
- int a = 0;
- foreach(var s in before.ToString())
- {
- b += Convert.ToInt32(s);
- }
- foreach(var s in after.ToString())
- {
- a += Convert.ToInt32(s);
- }
- if ((b - a) >= 0)
- {
- Console.WriteLine("Call her!");
- }
- else
- {
- Console.WriteLine("She is not the one.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement