Coding_Algorithm/정올 문제풀이
[정올] Language Coder_선택제어문_형성평가3_code122(Python)
age = int(input()) if age % 400 == 0: print("leap year") elif (age % 4 == 0) and (age % 100 != 0): print("leap year") else: print("common year")
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_선택제어문_형성평가3_code122(Python)
age = int(input()) if age % 400 == 0: print("leap year") elif (age % 4 == 0) and (age % 100 != 0): print("leap year") else: print("common year")
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_선택제어문_자가진단6_code533(Python)
gender, age = input().split() age = int(age) if gender == 'F' and age >= 18: print("WOMAN") elif gender == 'F' and age = 18: print("MAN") else: print("BOY")
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_연산자_형성평가5_code115(Python)
a, b = input().split() c, d = input().split() a, b, c, d = int(a), int(b), int(c), int(d) print("%d"%((a>c) and (b > d))) if문을 이용해서 구현할 수도 있지만, 카테고리가 연산자인만큼 연산자로 구현하였습니다.
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_연산자_자가진단6_code523(Python)
a, b = input().split() a = int(a) b = int(b) print("%d > %d --- %d"%(a, b, bool(a>b))) print("%d < %d --- %d"%(a, b, bool(a=b))) print("%d
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_입력_형성평가5_code110(Python)
yard = float(input("yard? ")) print("%.1fyard = %.1fcm"%(yard, 91.44*yard))
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_입력_형성평가4_code106(Python)
a = 10 b = 20 sum = a + b print("%d + %d = %d"%(a, b, sum))
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_입력_자가진단6_code514(Python)
height = int(input("height = ")) print("Your height is %dcm."%height)
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_출력_형성평가5_code105(Python)
print("%15s%15s%15s"%("Seoul", "10,312,545", "+91,375")) print("%15s%15s%15s"%("Pusan", "3,567,910", "+5,868")) print("%15s%15s%15s"%("Incheon", "2,758,296", "+64,888")) print("%15s%15s%15s"%("Daegu", "2,511,676", "+17,230")) print("%15s%15s%15s"%("Gwangju", "1,454,636", "+29,774"))
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_출력_형성평가4_code104(Python)
kor = 90 mat = 80 eng = 100 print("kor %d"%kor) print("mat %d"%mat) print("eng %d"%eng) print("sum %d"%(kor+mat+eng)) print("avg %d"%((kor+mat+eng)/3))
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_출력_형성평가3_code103(Python)
a = """TTTTTTTTTT TTTTTTTTTT TT TT TT""" print(a)
Coding_Algorithm/정올 문제풀이
[swat] 삼성 코딩테스트 기출문제 유형 - 수강신청
#include #define MAX_NUM 1000000 int main(){ int N, B, C; scanf("%d", &N); if (N MAX_NUM) { printf("INPUT ERROR\n"); return 0; } int *Ai = malloc(sizeof(int)*N); for (int i = 0; i 0) { sum++; //조교투입 for (; num > 0; num -= C) { sum++; } } else { sum++;..
Coding_Algorithm/정올 문제풀이
[정올] Beginner_Coder_도형만들기1_구구단_code1291 (C)
#include int main(){ int s, e; int flag; while (1) { scanf("%d %d", &s, &e); if ((2