Skip to content

Instantly share code, notes, and snippets.

View koluku's full-sized avatar

koluku koluku

View GitHub Profile
/*
* Exercise 8-2b, shiritorifile.c
*/
#include <stdio.h>
#include <string.h>
int main(void){
char name[256];
#!/bin/sh
brew update
pip-review -a
gem update
npm update -g
h1 = int(input())
h2 = int(input())
print(h1-h2)
print(int(input())-int(input()))
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:
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:
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)
x, y = map(int, input().split())
if x > y:
print(x)
else:
print(y)
import re
word = input()
reword = re.sub('[aiueo]', '', word)
print(reword)
word = input()
reword = word.replace('a', '').replace('i', '').replace('u', '').replace('e', '').replace('o', '')
print(reword)