This file contains 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
/* | |
* Exercise 8-2b, shiritorifile.c | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
int main(void){ | |
char name[256]; |
This file contains 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/sh | |
brew update | |
pip-review -a | |
gem update | |
npm update -g |
This file contains 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
h1 = int(input()) | |
h2 = int(input()) | |
print(h1-h2) |
This file contains 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
print(int(input())-int(input())) |
This file contains 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
km = int(input())/1000 | |
if km < 0.1: | |
vv = 0 | |
if 0.1 <= km and km <= 5: | |
vv = km * 10 | |
if 6 <= km and km <= 30: | |
vv = km + 50 | |
if 35 <= km and km <= 70: | |
vv = (km - 30) / 5 + 80 | |
if 70 < km: |
This file contains 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
km = int(input())/1000 | |
if km < 0.1: | |
vv = 0 | |
if 0.1 <= km <= 5: | |
vv = km * 10 | |
if 6 <= km <= 30: | |
vv = km + 50 | |
if 35 <= km <= 70: | |
vv = (km - 30) / 5 + 80 | |
if 70 < km: |
This file contains 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
deg, dis = map(int, input().split()) | |
dirs = ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"] | |
wps = [2, 15, 33, 54, 79, 107, 138, 171, 207, 244, 284, 326] | |
dir = dirs[(deg * 10 + 1125) % 36000 // 2250] if w > 0 else "C" | |
w = 0 | |
for n in wps: | |
if int(dis/6 + 0.5) > n: | |
w += 1 | |
print(dir, w) |
This file contains 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
x, y = map(int, input().split()) | |
if x > y: | |
print(x) | |
else: | |
print(y) |
This file contains 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 re | |
word = input() | |
reword = re.sub('[aiueo]', '', word) | |
print(reword) |
This file contains 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
word = input() | |
reword = word.replace('a', '').replace('i', '').replace('u', '').replace('e', '').replace('o', '') | |
print(reword) |