Skip to content

Instantly share code, notes, and snippets.

@dzsquared
Created December 30, 2016 02:45
Show Gist options
  • Save dzsquared/00b0fefc39a3581aaac745330536a0d3 to your computer and use it in GitHub Desktop.
Save dzsquared/00b0fefc39a3581aaac745330536a0d3 to your computer and use it in GitHub Desktop.
conditions created by dzsquared - https://repl.it/Ewyo/0
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int N = Convert.ToInt32(Console.ReadLine());
if (N%2 == 0) {
if(N >= 2 && N<= 5) {
Console.WriteLine("Not Weird");
}
else if (N>=6 && N<=20) {
Console.WriteLine("Weird");
}
else {
Console.WriteLine("Not Weird");
}
} else if (N%2 == 1) {
Console.WriteLine("Weird");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment