SHARE
TWEET

Contest80Task1SevenlandNumbers

g-stoyanov Dec 30th, 2012 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top