This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import sys | |
N = int(input().strip()) | |
if (N % 2 != 0) or (N % 2 == 0 and 6 <= N <= 20): | |
print('Weird') | |
else: | |
print('Not Weird') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def get_total_cost_of_meal(): | |
# original meal price | |
meal_cost = float(sys.stdin.readline()) | |
# tip percentage | |
tip_percent = int(sys.stdin.readline()) | |
# tax percentage | |
tax_percent = int(sys.stdin.readline()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"io" | |
) | |
func main() { | |
fmt.Printf("%s\n", "Hello, World.") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
i = 4 | |
d = 4.0 | |
s = 'HackerRank ' | |
# Declare second integer, double, and String variables. | |
# Read and save an integer, double, and String to your variables. | |
my_int = int(sys.stdin.readline()) | |
my_dbl = float(sys.stdin.readline()) |
NewerOlder