Advertisement
g-stoyanov

Contest80Task1SevenlandNumbers

Dec 30th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.  
  3. class Contest80Task1SevenlandNumbers
  4. {
  5.     static void Main()
  6.     {
  7.         int input = int.Parse(Console.ReadLine());
  8.         input = !((input - 66) % 100 == 0) && (input - 6) % 10 == 0 ? input + 4 : input = (input - 66) % 100 == 0 ? input + 34 : ++input;
  9.         Console.WriteLine(input == 700 ? 1000 : input);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement