# print("Hello World")# print("\"Hello World\"")# print("print(\"Hello\\nWorld\")")# a = input()# b = input()## print(int(a))# print(int(b))# a, b = input().split()# print(b, end=' ')# print(a)# a, b, c = input().split('.')# print(c, end='-')# print(b, end='-')# print(a)# a, b, c = input().split(':')# print(b)# a, b = input().split()# print(int(a)+int(b))# a = input()# print(ord(a))# a, b = map(float, input().split())# print(a*b)# a = int(input())# if 90 <= a <= 100:# print('A')# if 70<= a < 90:# print('B')# if 40 <= a <70:# print('C')# if 0 <= a < 40:# print('D')# a = int(input())# for i in range(a):# print(a-1-i)# s = 0# a = int(input())# for i in range(1, a+1):# if i % 2 == 0:# s += i# print(s)# a, b = map(int, input().split())# print(a+b, a-b, a*b, a//b, a%b, format(a/b, ".2f"), end='\n')# a = float(input())# print(format(a, '.2f'))# a = int(input())# # x = 1# # s = 0# # while True:# # s += x# # if s >= a:# # break# # x += 1# ## # print(x)# a, d, n = map(int, input().split())# print(a+d*(n-1))# a = int(input())# x= []# y = []# k = input().split()# for i in range(a):# x.append(int(k[i]))## for i in range(1, 24):# s= 0# for j in range(a):# if x[j] == i:# s += 1## y.append(s)## for i in range(23):# print(y[i], end=' ')# x = []# a = int(input())# k = input().split()# for i in range(a):# x.append(int(k[i]))## m = x[0]# for i in range(a):# if x[i] < m:# m = x[i]## print(m)# q = []# for i in range(19):# x = input().split()# q.append(x)## a = int(input())# for i in range(a):# x1, y1 = map(int, input().split())# x1 -= 1# y1 -=1# for j in range(19):# if int(q[x1][j]) == 0:# q[x1][j] = 1# else:# q[x1][j] = 0## for i in range(19):# if int(q[i][y1]) == 0:# q[i][y1] = 1# else:# q[i][y1] = 0### for i in range(19):# for j in range(19):# print(q[i][j], end=' ')# print()# q = []# h, w = map(int, input().split())# for i in range(h):# v = []# for j in range(w):# v.append(0)# q.append(v)# n = int(input())# for i in range(n):# l, d, x, y = map(int, input().split())# x -= 1# y -= 1# if d == 0:# for j in range(y, y+l):# q[x][j] = 1# else:# for k in range(x, x+l):# q[k][y] = 1## for i in range(h):# for j in range(w):# print(q[i][j], end=' ')# print()# q = []# for i in range(10):# v = input().split()# x = []# for j in range(10):# x.append(int(v[j]))# q.append(x)## d = 0# #d가 1면 x방향, 0이면 y방향# x = 1# y = 1# #x, y는 각각 개미의 위치. x가 i랑 같은 줄# while True:# if q[x][y] == 2:# q[x][y] = 9# break# elif q[x+1][y] == 1 and q[x][y+1] == 1:# q[x][y] = 9# break# else:# q[x][y] = 9# if d == 1:# if q[x+1][y] != 1:# if q[x-1][y+1] == 1 and q[x][y+1] != 1:# y += 1# d = 0# else:# x += 1# else:# y += 1# d = 0# else:# if q[x][y+1] != 1:# y += 1# else:# x += 1# d = 1# ## # for i in range(10):# # for j in range(10):# # print(q[i][j], end=' ')# # print('')## x = input()# #print(x[-1])# print(x.find('a')) #문자열에서 a가 처음으로 나온 위치# # print(x[3:7])## # ord# # chr# #1024 1295 1406 1407 1414 1754 1990 2721 6130 6131# a = input()# for i in a :# print("\'" + i + "\'")## b = [1,3,7,6,4]# for i in b :# print(i)# y = []# a = input()# n = len(a)# x = 0# for i in a:# y.append(a[x].lower())# if y[x] == a[x]:# y[x] = a[x].upper()# x += 1## for i in range(n):# print(y[i], end='')# a = input()# if a == 'love':# print('I love you.')a = input()n = len(a)sc = 0scc = 0for i in range(n): if a[i] == 'c' or a[i] == 'C': sc += 1 if a[i+1] == 'c' or a[i+1] == 'C': scc += 1
top of page
기능을 테스트하려면 라이브 사이트로 이동하세요.
2023.12.10
2023.12.10
댓글 0개
좋아요
댓글(0)
bottom of page