top of page

게시판 게시물

kimyongjae1217
2023년 2월 08일
In 소스 코드 제출
/*#include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /*#include <stdio.h> int main(){ int a,b,i,s=0; scanf("%d %d", &a,&b); for(i=a; i<=b; i++){ if(i%3==0){ s+=i; } } printf("%d",s); } */ /* #include <stdio.h> int main(){ int k, i, p, s=0; scanf("%d", &k); for (i=0; i<k; i++){ scanf("%d", &p); s+=p; } printf("%d",s); } */ /* #include <stdio.h> int main() { int k, i, p, s=0; scanf("%d", &k); for (i=0; i<k; i++) { scanf("%d", &p); if(p%5==0) { s+=p; } } printf("%d",s); } */ /* #include <stdio.h> int main(){ int a, b, i, n, s=0; scanf("%d",&n); for(i=0; i<n ; i++){ scanf("%d",&b); if(b%2!=0){ s++; } } printf("%d",s); } */ /* #include <stdio.h> int main(){ int a, d, n;&a, &d,&n); printf("%d",a+(n-1)*d); scanf("%d %d %d", } */ /* #include <stdio.h> long long int main() { long long int a, r, n, k; scanf("%lld %lld %lld",&a, &r, &n); for(k=0; k<n-1; k++) { a *= r; } printf("%lld", a); } */ /* #include <stdio.h> int main(){ long long int a,m,d,n,k; scanf("%lld %lld %lld %lld",&a, &m, &d, &n); for(k=1; k<n; k++){ a=a*m+d; } printf("%lld",a); } */ #include <stdio.h> int main() { long long int a,b,n=0; scanf("%lld",&b); for(a=1; a<=b; a++) { if(a%10==1) { n++; } } printf("%lld", n); }
0
0
3
kimyongjae1217
2023년 2월 02일
In 소스 코드 제출
/* #include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ // //#include<stdio.h> // //int main() //{ // int input, data; // // scanf("%d", &input); // data = ((input%10*10) + (input/10)) * 2; // data = data % 100; //// if(data>=100) { //// data -= 100; //// } // printf("%d\n", data); // // if(data <= 50) { // printf("GOOD"); // } // else { // printf("OH MY GOD"); // } // // // //// scanf("%d",&a); //// printf("%d", a%10*10+a/10*2); // //} #include<stdio.h> /* int main() { int x; scanf("%d", &x); // x = x + 10 / 10; switch(x) { case 1: printf("1111"); break; case 2: printf("2222"); case 3: printf("3333"); break; case 4: case 5: case 6: printf("456456"); break; case 'A': default: printf("5679085498234"); } } */ /* #include<stdio.h> int main() { int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); switch(a+b+c+d) { case 0: printf("모"); break; case 1: printf("도"); break; case 2: printf("개"); break; case 3: printf("걸"); break; case 4: printf("윷"); break; } } */ /* #include<stdio.h> int main(){ int a; scanf("%d",&a); if(a>=90){ printf("A"); } else if(a>=80 && a<90){ printf("B"); } else if(a>=70 && a<80){ printf("C"); } else if(a>=60 && a<70){ printf("D"); } else printf("F"); } */ /* #include<stdio.h> int main() { int i, n; scanf("%d", &n); for(i=1; i<=n; i++) { printf("%d ", i); } } */ /* #include<stdio.h> int main() { int i,a,b; scanf("%d %d",&a,&b); if(a>b) { for(i=b; i<=a; i++) { printf("%d ",i); }} else { for(i=a; i<=b; i++) { printf("%d ",i); } } for(i; i<=a; i++) { printf("%d ",i); } } */ /* #include<stdio.h> int main() { int i, n, s=0; scanf("%d",&n); for(i=1; i<=n; i+=1) { s += i; } printf("%d", s); } */ #include<stdio.h> int main() { int i,n,s=0; scanf("%d", &n); for(i=1; i<=n; i++) { if(i%2==0) { s += i; } } printf("%d", s); }
0
0
3
kimyongjae1217
2023년 1월 31일
In 소스 코드 제출
/*#include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /* #include<stdio.h> int main() { int x,y; scanf("%d %d", &x, &y); y = y + ((90-x)/5); if((90-x)%5!=0) { y += 1; printf("%d", y);} else{ printf("%d",y); } } */ /* #include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b && a>c) { if(b>c) { printf("%d",b); } else { printf("%d",c); } } else if(b>a && b>c) { if(a>c) { printf("%d",a); } else { printf("%d",c); } } else { if(a>b) { printf("%d",a); } else{ printf("%d",b); } } } */ // if(a>b && b>c) // { // printf("%d",b); // } // // else if(b>c && c>a) // { // printf("%d",c); // } // // if(c>b && b>a) // { // printf("%d",b); // } // if(a>c && c>b) // { // printf("%d",c); // } // if(b>a && a>c) // { // printf("%d",a); // } // if(c>a && a>b) // { // printf("%d",a); // } // else { // // } /* #include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(b>=30) { printf("%d %d", a, b-30); } else { if(a==0) { printf("%d %d", 23, b+30); } else { printf("%d %d", a-1, b+30); } } }*/ // if(a>0 && b>=30) // { // printf("%d %d",a,b-30); // } // else // { // if(a==0 && b<30) // { // printf("%d %d",a+23,b+30); // } // else if(a==0 && b>30) // { // printf("%d %d", a,b-30); // } // }
0
0
5
kimyongjae1217
2023년 1월 28일
In 소스 코드 제출
/*#include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /* #include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d", &a, &b, &c); if(b-c>a){ printf("advertise"); } else if(b-c==a){ printf("does not matter"); } else{ printf("do not advertise"); }} */ /* #include<stdio.h> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if((a-b+c)%10==0){ printf("대박"); } else{ printf("그럭저럭"); } } */ /* #include<stdio.h> int main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if((a+b+c)/100%2==0){ printf("대박"); } else{ printf("그럭저럭"); }} */
0
0
4
kimyongjae1217
2023년 1월 26일
In 소스 코드 제출
/*#include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; } */ /* #include<stdio.h> int main() { int s=0; int x, y; scanf("%d %d", &x, &y); if(x==1) { s += 400; } else if(x==2) { s = s + 340; } else if(x==3) { s= s+170; } else if(x==4) { s= s+100; } else if(x==5) { s= s+70; } if(y==1) { s += 400; } else if(y==2) { s += 340; } else if(y==3) { s += 170; } else if(y==4) { s += 100; } else if(y==5) { s +=70; } if(s>500) { printf("angry"); } else { printf("no angry"); } } */ /* #include<stdio.h> int main() { int a,b,c, t; scanf("%d %d %d", &a, &b, &c); if(a>b) { t = a; a = b; b = t; } if(b>c) { t = b; b = c; c = t; } if(c<a+b) { printf("yes"); } else { printf("no"); } } */ #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); if(b==2) { if(a%4==0 && a%100!=0) { printf("29"); } else if(a%400==0) { printf("29"); } else { printf("28") } } else if(b==4 || b==6 || b==9 || b==11) { printf("30"); } else { printf("31"); } }
0
0
5
kimyongjae1217
2023년 1월 18일
In 소스 코드 제출
*/ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", a%b); return 0; } */ #include<stdio.h> int main() { long long int a,b; scanf("%lld %lld", &a, &b); printf("%lld\n", a+b); printf("%lld\n", a-b); printf("%lld\n", a*b); printf("%lld\n", a/b); printf("%lld\n", a%b); printf("%.2lf\n", (double)a/b); return 0; }
0
0
9
kimyongjae1217
2023년 1월 17일
In 소스 코드 제출
/* #include<stdio.h> int main() { long long int x, y; scanf("%lld %lld", &x, &y); printf("%lld", x+y); return 0; } */ /* #include<stdio.h> int main() { char x; scanf("%c", &x); printf("%c",x+1); return 0; } */ /* #include<stdio.h> int main() { int x; scanf("%d", &x); printf("%d", -x); return 0; } */ /* #include <stdio.h> int main() { int a, b; scanf("%d %d", &a ,&b); printf("%d" , a/b); return 0; } */ /* #include <stdio.h> int main() { long long int x; scanf("%lld", &x); printf("%lld", x+1); return 0; } */ /* #include <stdio.h> int main() { long long int x,y,z; scanf("%lld %lld %lld", &x,&y,&z); printf("%lld\n", x+y+z); printf("%.1lf", (double)(x+y+z)/3); return 0; }*/ // 모르겠다 정은찬 바보 멍청이 허접 배성원 존잘 //#include <stdio.h> // //int main() //{ // int a,b; // scanf("%d", &a); // // printf("%d", a<<3); //} //#include<stdio.h> // //int main() { // int x, y; // > < <= >= != == // A >? B // 65 66 // Hello World // World(Address Compare) // a > 10 && a < 20 ? /* # include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", a==b); return 0; } */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", b>=a); return 0; } */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", a!=b); return 0; } */ /* #include<stdio.h> int main() { int a; scanf("%d", &a); printf("%d", !a); return 0; } */ /* A B | && | || | !(a&&b) -------------------------- 0 0 | 0 | 0 | 1 1 0 1 | 0 | 1 | 1 0 1 0 | 0 | 1 | 1 0 1 1 | 1 | 1 | 0 0 */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", a&&b); return 0; } */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d", a||b); return 0; } */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d",!(a&&b) && (a||b) ); return 0; } */ /* A B | && | || | answer !(a&&b) -------------------------- 0 0 | 0 | 0 | 0 1 0 1 | 0 | 1 | 1 1 1 0 | 0 | 1 | 1 1 1 1 | 1 | 1 | 0 0 0 1 | 0 1 1 | 1 1 1 | 1 1 0 | 0 !(a&&b) && (a||b) (a&&b) || !(a||b) */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d",(a&&b)|| !(a||b)); return 0; } */ /* #include<stdio.h> int main() { int a,b; scanf("%d %d", &a, &b); printf("%d",!(a||b) ); return 0; } */ #include<stdio.h> int main() { int a,b; } // 44, 42 // koistudy.net
0
0
11
kimyongjae1217
2023년 1월 12일
In 소스 코드 제출
/* #include <stdio.h> #include <stdlib.h> int main() { printf("Hello world!\n"); return 0; }// */ /* 정수 int %d long long int %lld 실수 float %f double %lf 문자 char %c */ /*#include <stdio.h> int main() { int a, b; scanf("%d.%d", &a, &b); printf("%d\n%d", a, b); return 0; } */ /* #include <stdio.h> int main() { int a,b,c,d,e; scanf("%1d%1d%1d%1d%1d", &a,&b,&c,&d,&e); printf("[%d]\n", a*10000); printf("[%d]\n", b*1000); printf("[%d]\n", c*100); printf("[%d]\n", d*10); printf("[%d]\n", e); return 0; } */ /* 산술연산자 + - * / , % int x=10, y=3; x/y ???> 3(몫) double x=10; int y = 3; x/y = 3.33333 10/3 = 3(몫) ... 1(나머지) 10%3 = 1(나머지) ------------------------------ Overflow int: +- 21억 int x, y; x = 21억 y = 21억 x+y= 42억? ~2147483647 + 1 ? = 1) 2147483648 2) 0 3) -1 4) -2147483648 (V) */ /*#include<stdio.h> int main() { long long int x, y; scanf("%lld %lld", &x, &y); printf("%lld", x+y); return 0; }*/ /*#include <stdio.h> int main() { int h,m,s; scanf("%d:%d:%d", &h, &m, &s); printf("%d", m); return 0; } */ /* #include <stdio.h> int main() { int y,m,d; scanf("%d.%d.%d", &y, &m, &d); printf("%02d-%02d-%04d",d,m,y); return 0; } */ /* #include <stdio.h> int main() { unsigned int n; scanf("%u", &n); printf("%u", n); return 0; } */ /* #include <stdio.h> int main() { double d; scanf("%lf", &d); printf("%.11lf",d); return 0; } */ /* #include <stdio.h> int main() { long long int n; scanf("%lld",&n); printf("%lld",n); return 0; }*/ /* #include <stdio.h> int main() { int n; scanf("%d",&n); printf("%x",n); return 0; } */ /* #include <stdio.h> int main() { long long int x,y; scanf("%lld %lld",&x,&y); printf("%lld",x+y); return 0; }*/ /* #include <stdio.h> int main() { long long int x; scanf("%d", &x); printf("%d",-x); return 0; } */ /* #include <stdio.h> int main() { char x; scanf("%c", &x); printf("%c", x+1); return 0; } */
0
0
9
kimyongjae1217
2022년 12월 27일
In 소스 코드 제출
/* comment #include <stdio.h> int main() { printf("Hello"); return 0; } */ /* #include <stdio.h> int main() { printf("\"C:\\Download\\hello.cpp\""); return 0; } */ /* int main() { int n; //n=15; scanf("%d", &n); printf("%d", n); return 0; } */ /* #include <stdio.h> int main() { char x; scanf("%c", &x); printf("%c", x); return 0; } */ /* #include <stdio.h> int main() { float x; scanf("%f", &x); printf("%f", x); } */ /* #include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d %d", a, b); return 0; } */ /* #include <stdio.h> int main() { char x, y; scanf("%c %c" , &x, &y); printf("%c %c" , y , x); return 0; } */ #include <stdio.h> int main() { double x; scanf("%lf" , &x); printf("%.2lf" , x); return 0; }
0
0
1

kimyongjae1217

더보기
bottom of page