P

@parkajeong

3/27 파이썬 함수 (세준 보충)

Python
7 months ago
#내장함수 print('hello world!') #출력하는 함수 a = input() #입력받는 함수 print(a) print(sum([10, 20, 30])) #합계를 구하는 함수 print(len("python")) #길이를 구하는 함수 print(max([10, 40, 50, 20, 30])) #최댓값을 구하는 함수 print(min([10, 40, 50, 20, 30])) #최솟값을 구하는 함수 print(max('orange'))

3/21 c언어 문제 풀이 (예린)

C
7 months ago
#include <stdio.h> int main() { int arr[100]; int n; scanf("%d", &n); for(int i=0;i<n;i++){ scanf("%d", &arr[i]); } int v, count;

3/21 cos pro 연습 (승후, 시윤)

C
7 months ago
#include <stdio.h> int main() { int n; scanf("%d", &n); for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++){ printf("*"); }

3/21 파이썬 함수 (-세준-, 주원, 재원, 종민)

Python
7 months ago
print('hello') #출력 a = input() #입력 print(max([10, 30, 60, 20, 40, 50])) #최댓값 구하기 print(min([3, 20, 32, 9, 84, 48])) #최솟값 구하기 print(max('hello')) print(min(['아', '나', '사', '다'])) print(sum([100,34,67,2000])) #합계 구하기 print(len('hello')) #길이 def my_fu

3/20 자료형 사칙연산, 인덱스, 인덱싱, 슬라이싱 (하율)

Python
7 months ago
a = 10 + 20 print(a) print(10-4) print(130*132) print(100/32) print(10%3) b = 300 print(b+10) print(10//3) print(10**3)

3/14 cos pro 연습 2주차 (시윤, 승후)

C
8 months ago
#include <stdio.h> int main() { int a, b, c, money, max = 0; scanf("%d %d %d", &a, &b, &c); if(a == b && b == c){ money = 10000 + a * 1000; }else if(a == b || b == c || a == c){ if (a == b){

3/14 파이썬 시퀀스 사용, 튜플, 딕셔너리 (주원, 세준, 재원, 종민)

Python
8 months ago
a = ['주원', '세준', '재원', '종민'] a.pop() a.pop(1) print(a.pop(0)) print(a) seq = [1, 1, 1, 2, 2, 3] print(seq.count(1)) str1 = "ialikeapython"

3/7 (예린)

C
8 months ago
#include <stdio.h> int max(int a, int b, int c); int main() { int a, b, c, money = 0; scanf("%d %d %d", &a, &b, &c); if (a==b && b==c){ money = 10000 + a * 1000; }else if(a == b || a == c){ money = 1000 + a * 100;

3/7 cos pro 3급 연습 1주차 (시윤, 승후)

C
8 months ago
#include <stdio.h> int main() { int n; scanf("%d", &n); if (n % 4 == 0 && n % 100 != 0 || n % 400 == 0){ printf("%d", 1); }else{ printf("%d", 0); }

3/7 파이썬 반복문 for문 (-주원-, 세준, -재원-)

Python
8 months ago
for i in [1, 2, 3]: print('안녕') for i in 'abc': print('하세요') for i in range(10): #10번 반복 print('이름') for i in range(1, 11): #1~10까지 10번 반복

2/28 문제 연습 (시윤, 승우, 승후)

C
8 months ago
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%d\n", (a+b)%c); printf("%d\n", ((a%c)+(b%c))%c); printf("%d\n", (a*b)%c); printf("%d\n", ((a%c)*(b%c))%c); }

2/28 문제 연습 (-주완-, -세현-, 도윤)

C
8 months ago
#include <stdio.h> int main() { printf("Hello world!\n"); return 0; }

2/25 파이썬 반복문 이해하기 (담미, 정윤, 시헌)

Python
8 months ago
# sum = 0 # for i in [3, 6, 9]: # sum = sum + i # print(sum) # i = 1 # while i < 11: # print(i) # i+=1

2/23 파이썬 시퀀스, 반복문 (담미, 정윤, 시헌)

Python
8 months ago
list = ['사','자','호','랑','이'] print(list[2:5]) print('사' in list) print('마' in list) print(len(list)) d = ['hi'] * 3 print(d) fruits = ['바나나', '망고', '딸기'] if '딸기' in fruits: fruits.remove('딸기')

2/23 (2/28) c언어 3급 문제 (예원)

C
8 months ago
#include <stdio.h> int main() { // char str1[10]; // char str2[10]; // scanf("%s", str1); // scanf("%s", str2); // printf("%s&%s",str1,str2); // int i, count=0;

2/21 c언어 복습 연습문제

C
8 months ago
#include <stdio.h> int main() { // int a, b; // scanf("%d %d", &a, &b); // printf("%d\n", a+b); // printf("%d\n", a-b); // printf("%d\n", a*b); // printf("%d\n", a/b);

2/21 파이썬 연습 문제

Python
8 months ago
# a = int(input()) # b = int(input()) # print(a+b, a-b, a*b, a//b) # for i in range(5): # n1, n2 = map(int, input().split()) # print(n1+n2) # age = int(input()) # if age >= 8 and age <= 13:

2/21 스스로 복습 (-시윤-, 승우, 승후)

C
8 months ago
#include <stdio.h> int main() { int sum = 0; for(int i=1;i<=100;i++){ sum = sum + i; } printf("%d\n", sum); }

2/21 스스로 복습 (주완, 세현, 도윤)

C
8 months ago
#include <stdio.h> int main() { int a; scanf("%d", &a); printf("%d\n", a*2); for(int i=1;i<=10;i++){ printf("%d\n", i); }

2/21 배열 2 (주완, 세현, 도윤)

C
8 months ago
#include <stdio.h> int main() { char str[] = "coding"; char array_c[10] = {'c', 'o', 'd', 'i', 'n', 'g', '\0'}; printf("%s\n", array_c); for(int i=0;i<10;i++){ printf("%c\n", array_c[i]); } for(int i=0;i<10;i++){