top of page

게시판 게시물

danielygkim11
2023년 7월 06일
In 소스 코드 제출
//#include <iostream> //using namespace std; // //int main() //{ // int i, n, k =0 ; // for( i=1 ; i<6 ; i++ ) { // cin >> n ; // k += ( n * n ) ; // } // int p = ( k % 10 ) ; // cout << p; //return 0 ; //} #include<iostream> using namespace std ; int main() { int i, n, k; for( i=0 ; ; i++ ){ } return 0 ; }
0
0
1
danielygkim11
2023년 7월 05일
In 소스 코드 제출
//#include <iostream> // //using namespace std; //int main() //{ // int i, n, k; // int p = 0; // int g[10005]; // int m = 0; // // for(i=0; i<4; i++){ // cin >> n >> k; // p += (-n + k); // if (p>m){ // m=p; // } // } // cout << m; // //return 0; // //} //#include<iostream> //using namespace std; //int main() //{ //int i, n, k; //int p = 0; //int m = 0; // //for(i = 0; i<10; i++){ // cin >> n >> k; // p+=(-n+k); // if (p>m){ // m = p; // } //} //cout << m; //return 0; //} //#include<iostream> // //using namespace std; // //int summation(int t, int x, int y) { // t = t - x + y; // return t; //} // //int main() { // int i, n, m, s=0, max= -1; // // for(i=0; i<10; i++) { // cin >> n >> m; // s = summation(s, n, m); // if(max < s) { // max = s; // } // } // cout << max; //} #include<iostream> using namespace std; int main(){ int i=0, n, j, k; cin >> n; for(i=0;i<n;i++){ cin >> j; } }
0
0
2
danielygkim11
2023년 7월 04일
In 소스 코드 제출
//#include<iostream> // //using namespace std; // //// Object-Oriented Programming //class student{ //public: // int age; // string name; // // student(int age) { // cout << "This is Constructor" << endl; // // Initialize Field // } // // void talk() { // cout << "My Age is " << age << endl; // } // // int sum(int x, int y) { // int p = x + y; // return p; // } // // ~student() { // cout << "This is Destructor" << endl; // } //}; // //int main() { // student x(10); // x.talk(); // cout << x.sum(100, 200) << endl; // x.age = 100; // cout << x.age << endl; //} //#include<iostream> // //using namespace std; // //int sum(int x, int r) { // int p = x + r; // // return p; //} // //int main() { // int x, y; // // cin >> x>> y; // // cout << sum(x, y) << endl;; // cout << sum(10, 20) << endl; // cout << sum(200, -34) << endl; // // return 0; //} //#include<iostream> // //using namespace std; // //int sum(int x, int y) //int main() //{ // // //return 0; //}
0
0
3
danielygkim11
2023년 6월 28일
In 소스 코드 제출
//#include<iostream> //using namespace std; //int main() //{ // int g,i,n,f,c,y; // cin >> c; // for (i=1;i<=c;i++){ // cin >> n; // n+=i; // } // if () // cout << ; //return 0; //} // //#include<iostream> // //using namespace std; // //int main() { // int arr[55] = {0}; // int i, n, k; // // cin >> n; // // for(i=1; i<=n; i++) { // cout << i << " "; // } // cout << endl; // for(i=1; i<=n; i++) { // cout << arr[i] << " "; // } // cout << endl; // // for(i=1; i<=n-1; i++) { // cin >> k; // arr[k] = 1; // } // // for(i=1; i<=n; i++) { // cout << i << " "; // } // cout << endl; // for(i=1; i<=n; i++) { // cout << arr[i] << " "; // } // cout << endl; // // for(i=1; i<=n; i++) { // if(arr[i] == 0) { // cout << i; // break; // } // } // // return 0; //} //#include<iostream> // //using namespace std; // //int main() { // int i, n, k, s1=0, s2=0; // // cin >> n; // // for(i=1; i<=n; i++) { // s1 += i; // } // for(i=1; i<=n-1; i++) { // cin >> k; // s2 += k; // } // cout << s1 - s2; // // return 0; //} // //#include<iostream> // //using namespace std; // //int main() { // int i, n, k, s=0; // // cin >> n; // // for(i=1; i<=n-1; i++) { // cin >> k; // s -= k; // s += i; // } // s += n; // // cout << s; // //} #include<iostream> using namespace std; int main() { int i=0,n,k,s,j; int g[1005]= {0}; cin>>n; for(i=0; i<n; i++){ cin >> g[i]; } for(i=0; i<n; i++){ for(j=0; j<n; j++){ if(i>j){ cout<<"<"; } else if(){ } else if(){ } else if(){ } } } return 0; }
1
0
7
danielygkim11
2023년 6월 27일
In 소스 코드 제출
//#include <iostream> //using namespace std; // //int main() { // int i, j, k, n; // // cin >> k; // // for(i=0; i<k; i++) { // for(j=0; j<=i; j++){ // cout << "*"; // } // cout << endl; // } // // for(i=0; i<k; i++) { // for(j=i; j<k-1; j++){ // cout << "*"; // } // cout << endl; // } // //return 0; //} //#include <iostream> //using namespace std; // //int main() //{ // int arr[1000] = {0}; // int n, i, g; // // cin >> n; // // for(i=0; i<n-1; i++) { // g= // cin >> ; // } // cout // // //return 0; //} #include<iostream> using namespace std; int main() { int g,i,n,f,c,y; cin >> c; for (i=1;i<c;i++){ cin >> n; } f=(i-n); cout << f; return 0; }
0
0
3
danielygkim11
2023년 6월 24일
In 소스 코드 제출
//#include <iostream> // //using namespace std; // //int main() //{ // int i,j,k,n; // // cin >> n >> k; // for (i=0; i<n;i++){ // for (j=0;j<n;j++){ // if(i==0 || j==0 || i==n-1 || j==n-1 || (i+j+1)%k==0) { // // cout << "*"; // // } // // else { // cout << " "; // } // // // } // cout << endl; // } // // // //} //#include <iostream> // //using namespace std; // //int main() { // int i, j, k; // // cin >> k; // // for(i=0; i<k; i++) { // for(j=0; j<=i; j++) { // cout << "*"; // } // cout << endl; // } // //} //#include <iostream> // //using namespace std; // //int main() { // int i, j, k, n; // // cin >> k; // // for(i=0; i<k; i++) { // // for(j=i; j<k; j++) { // // cout <<"*"; // // } // // cout << endl; // } // //} /* #include <iostream> using namespace std; int main() { int i, j, k; cin >> k; for(i=0;i<k;i++) { // line for(j=0;j<i;j++) { // empty/space cout << " "; } for(j=k; j>i; j--) { // draw cout << "*"; } cout << endl; } } */ //#include<iostream> // //using namespace std; // //int main() { // int arr[100]; // // arr[0] ~arr[99] // int i, k; // // cin >> k; // // for(i=0; i<k; i++) { // cin >> arr[i]; // } // // for(i=k-1; i>=0; i--) { // cout << arr[i] << " "; // } // // // //} #include<iostream> using namespace std; int main() { int arr[200]; // arr[0] ~arr[99] int i, n, k; cin >> k; for(i=0; i<k; i++) { cin >> arr[i]; } for(n=0;n<k;n++) { cout << arr[n] << endl; } for(n=0;n<k;n++) { cout << arr[n] << endl; } }
0
0
5
danielygkim11
2023년 6월 22일
In 소스 코드 제출
//#include <iostream> // //using namespace std; // //int main() //{ // int a, k, y; // cin >> k; // for(int i = 1; i <=k; i++){ // if(k%i==0){ // // cout<< i << " " ; // } // } // return 0; //} //#include <iostream> // //using namespace std; // //int main() //{ // // data: 5, 8, 2, 9, 1 // int n, i, k, max = -1000000; // // cin >> n; // // for(i=0; i<n; i++) { // cin >> k; // // if(k > max) { // max = k; // } // } // cout << max; // // return 0; //} //#include <iostream> // //using namespace std; // //int main() //{ // // data: 5, 8, 2, 9, 1 // int n, i, k, max = -1000000, min = 1000000; // // // for(i=0; i<5; i++) { // cin >> k; // // if(k > max) { // max = k; // } // if (k < min){ // min = k; // } // // } // cout << max << endl <<min << endl; // // return 0; //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, j, n; // // cin >> n; // // for(i=0; i<n; i++) { // for(j=0; j<n; j++) { // cout << "*" << "(" << i << ", " << j << ")\t" ; // } // cout << endl; // } //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, j, n; // // cin >> n; // // for(i=0; i<n; i++) { // for(j=0; j<n; j++) { // cout <<"*"; // } // cout << endl; // } //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, j, n; // // cin >> n; // // for(i=0; i<n; i++) { // for(j=0; j<n; j++) { // if( ) { // cout <<"*"; // } // else { // cout <<" "; // } // } // cout << endl; // } //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, j, n; // char s = '*'; // char p = ' '; // // cin >> n; // // for(i=0; i<n; i++) { // for(j=0; j<n; j++) { // if(i==0 || j==0 || i==n-1 || j==n-1) { // cout << "*"; // } // else{ // cout << " "; // } // } // cout << endl; // } //} #include <iostream> using namespace std; int main() { int i, j, n; char s = '*'; char p = ' '; cin >> n; for(i=0; i<n; i++) { for(j=0; j<n; j++) { if(i==0 || j==0 || i==n-1 || j==n-1) { cout << "*"; } else if(i==j){ cout << "*"; } else if(j+i==n-1){ cout << "*"; } else{ cout << " "; } } cout << endl; } }
1
0
4
danielygkim11
2023년 6월 20일
In 소스 코드 제출
//#include <iostream> // //using namespace std; // //int main() //{ // int a; // int b; // int x=0; // int y; // // cin >> a >> b; // for (a;a<=b;a++){ // // if (a%3==0){ // x += a; // // } // } // cout << x << endl; // // // return 0; //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, x, k; // int v=0; // // cin >> x; // // for(i=0; i<x; i++) // { // cin >> k; // // v+=k; // // // // } // cout << v << endl; // // //} //#include <iostream> // //using namespace std; // //int main() //{ // int a, b, c; // int k=0; // cin >> b; // for (a=0; a<b; a++){ // cin >> c; // if (c%5==0){ // k+=c; // } // } // cout << k << endl; //return 0; //} //#include <iostream> // //using namespace std; // //int main() //{ // int i, n, k, s =0; // // cin >> n; // // for(i=0; i<n; i++) { // cin >> k; // // if(k%2!=0) { // s+=1; // } // // } // cout << s << endl; // return 0; //} #include <iostream> using namespace std; int main(){ int i, n, k, s = 0,y; cin >> n >>k; for (i=n;i<=k;i++){ if (n%2!=0) y=+n; else if (n%2==0){ y = -n; } y+=1; } cout << y << endl; return 0; }
0
0
2
danielygkim11
2023년 6월 17일
In 소스 코드 제출
//#include <iostream> // //using namespace std; // //int main() //{ // int y; // // cin >> y; // // if (y%400 == 0) { // cout << "Leap"; // } // // else if (y%4==0 && y%100 != 0){ // cout << "Leap"; // } // else{ // cout << "Normal"; // } // // return 0; //} /* #include<iostream> using namespace std; int main() { return 0; }*/ //#include<iostream> // //using namespace std; // //int main() //{ // int x; // cin >> x; // for(int i=0; i<x; i+=2) { // cout << i << endl; // } // // // for(int i=10; i>=0; i--) { // cout << i << endl; // } // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int x; // cin >> x; // for(int i=1; i<=x; i++){ // cout << i << endl; // } // return 0; //} /* #include<iostream> using namespace std; int main() { int a; int b; cin >> a >> b; if (a<b){ for (a;b>=a;a++){ cout << a << endl; } } else if(a>b){ for(b;a>=b;b++){ cout << b << endl; } } else if (a==b){ cout << a; } return 0; }*/ //#include<iostream> //using namespace std; //int main() //{ // int x, sum=0; // // cin >> x; // // for(int i=1; i<=x; i++) { // // sum += i; // } // cout << sum; // // //} //#include <iostream> // //using namespace std; // //int main(){ // int x; // int m=0; // cin >>x; // for(int i=0; i<=x; i++){ // if (i % 2 == 0){ // m+=i; // } // } // cout << m << endl; // return 0; //} #include<iostream> using namespace std; int main() { int a; int b; cin>>a>>b; for(a;) return 0; }
0
0
7
danielygkim11
2023년 6월 15일
In 소스 코드 제출
/* // Online C++ compiler to run C++ program online #include <iostream> using namespace std; int main() { int a; int b; int c; cin >> a >> b >> c; if (a + b > c) { if (a == b && b == c) { cout << "정삼각형"; } else if (a == b || b == c || a == c) { cout << "이등변삼각형"; } else if (a a + b b == c * c) { cout << "직각삼각형"; } else { cout << "삼각형"; } } else { cout << "삼각형아님"; } return 0; } */ /* #include<iostream> using namespace std; int main() { double h; double w; double y; double x; cin >> h >> w; if (h < 150) { y = (h - 100); } else if (h < 160) { y = ((double)(h - 150) / 2 + 50); } else { y = ((double)(h - 100) * 0.9); } x = ((double)(w - y) * 100 / y); if (x <= 10) { cout << "정상"; } else if (x <= 20) { cout << "과체중"; } else { cout << "비만"; } return 0; } */ /* #include<iostream> using namespace std; int main() { int x; cin >> x; switch (can write formula, ex) x + 10 or x/10 ) { case 1: cout << 111111111111; break; case 2: cout << 2222222; case 3: cout << 33333; break; case 4: case 5: case 6: cout << 456456456; break; default: cout << 00000000; break; } return 0; } */ /*#include<iostream> using namespace std; int main() { int x; // for (int i = 0; i < 100; i++) { // cout << i / 10 << ", " << i << endl; // } cin >> x; switch (x/10) { } } return 0; } */
0
0
1
danielygkim11
2023년 6월 14일
In 소스 코드 제출
//#include<iostream> // //using namespace std; // //int main() //{ // // int a; // // cin >> a; // // if (a%6==0||a>=50&&a<=70){ // cout << "win" << endl; // } // // else{ // cout << "lose" << endl; // } // //return 0; //} //17 #include<iostream> using namespace std; int main() { int x, y; cin >> x; y = ( ( (x/10) + (x%10*10) ) * 2) %100; // if(y >=100) { // y -= 100; // } cout << y; if(y <= 50) { cout << "\nGOOD"; } else { cout << "\nOH MY GOD"; } /*if(y<50){ cout << "GOOD" << endl; } else{ cout << "OH MY GOD" } */ return 0; }
0
0
1
danielygkim11
2023년 6월 13일
In 소스 코드 제출
//#include<iostream> //using namespace std; // //int main() //{ // int a; // int b; // // // cin>>a>>b; // cout<<a<<"+"<<b<<"="<<a+b<<endl; // cout<<a<<"-"<<b<<"="<<a-b<<endl; // cout<<a<<"*"<<b<<"="<<a*b<<endl; // cout<<a<<"/"<<b<<"="<<a/b<<endl; // return 0; //} //#include<iostream> //using namespace std; // //int main() //{ // double a; // double b; // // cin>>a; // printf("%.3lf", (double)9/5*a+32); // // return 0; //} //#include<iostream> //using namespace std; // //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a&&b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // cin>>a; // cout<<(~a); // return 0; //} //#include<iostream> // //using namespace std; // //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a & b); // // return 0; //} //#include<iostream> //using namespace std; // //int main() //{ // int a; // int b; // cin >> a >> b; // cout <<(a | b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // cin>> a >> b; // cout << (a ^ b); // // return 0; //} //#include <iostream> //using namespace std; //int main() //{ // int x, y; // // cin >> x >> y; // // if(x > y) { // cout << "Bigger" << endl; // } // ////////////////////////////////////// // if() { // if() { // if() { // // } // else if() { // // } // } // else { // // } // } // else if(x < y) { // cout << "Smaller" << endl; // } // else if() { // // } // else { // cout << "Same" << endl; // } // // // return 0; //} //#include<iostream> // //using namespace std; // //int main() //{ // int a; // int b; // // cin>>a>>b; // if (a > b){ // cout<<">"<<endl; // } // // else if(a < b){ // cout <<"<"<<endl; // } // // else{ // cout <<"="<<endl; // } // //return 0; //} //#include<iostream> // //using namespace std; // //int main() //{ // int a; // int b; // // cin >> a >> b; // // if (a>b){ // cout << (a-b) <<endl; // } // else if(a<b){ // cout << (b-a) << endl; // } // else{ // cout << "0" << endl; // } // //return 0; //}
0
0
5
danielygkim11
2023년 6월 08일
In 소스 코드 제출
//#include <iostream> // //using namespace std; // //int main() //{ // long long int a; // long long int b; // long long int c; // // cin>>a>>b>>c; // cout<<a+b+c<<endl; // printf("%.1lf", (double)(a+b+c)/3); // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // cin >> a >> b; // cout << (a > b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a==b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a<=b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // // cin>>a>>b; // cout<<(a!=b); // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // cin >> a; // cout << !(a); // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a&&b); // // return 0; //} //#include <iostream> //using namespace std; //int main() //{ // int a; // int b; // // cin >> a >> b; // cout << (a||b); // // return 0; //} //#include <iostream> //using namespace std; //int main() //{ // int a; // int b; // cin >> a >> b; // cout << (!(a&&b)&&(a||b)); // // // return 0; //} //#include<iostream> //using namespace std; //int main() //{ // int a; // int b; // cin >>a >>b; // cout<<((a&&b)||!(a||b)); // // return 0; //} #include<iostream> using namespace std; int main() { int a; int b; cin>>a>>b; cout<<(a||b)||(a &&b)); return 0; }
0
0
6
danielygkim11
2023년 6월 07일
In 소스 코드 제출
/* variable type range short 32365~ int -2147~+2147 long long int -922~+922 0~ 42 억 2^32 */ //#include <iostream> // //using namespace std; // //int main() //{ // long long int x; // // cin >> x; // cout << x; // // return 0; //} //#include<iostream> // //using namespace std; // //int main() //{ // double x; // cin >> x; // // printf("%.11lf", x); // return 0; // //} /* 산술 연산자 +, -, *, /, % +: x+y = x+y ex) 5+2 = 7 -: *: /: 5 / 2 = 2.5(human) //* computer is not smart // int / int = int (몫) // (float)int / int = float(2.5) // 명시적 형변환 // ............ type transfer 7 / 2 = 3 ... 1 7 = 2 * 3(몫) + 1(나머지) 7%2 => 1 %: 나머지 연산자 >> overflow: 넘치다. int: -2147483648 ~+2147483647 int x = 2147483647; // init cout << x + 1; */ //#include <iostream> // //using namespace std; // //int main() { // int x, y; // // cin >> x >> y; // //// cout << (double)x / y; // cout << x % y; // //} // //#include <iostream> // //using namespace std; // //int main() { // int x = 2147483647; // cout << x + 1; // //} //#include<iostream> //using namespace std; // //int main(){ // // long long int x; // long long int y; // // cin >> x >>y; // cout << x+y; // return 0; //} //#include<iostream> //using namespace std; //int main(){ // // long long int x; // long long int y; // // cin >> x >>y; // cout << x+y; // // return 0; //} // #include<iostream> // using namespace std; // int main (){ // long long int x; // // cin >> x; // cout << -x; // // return 0; // } //#include<iostream> //using namespace std; //int main(){ // char x; // // cin >> x; // cout << (char)(x+1); // // return 0; // //} //#include<iostream> //using namespace std; //int main(){ // int x; // int y; // // cin >> x>>y; // cout << x/y; // // return 0; //} //#include<iostream> //using namespace std; //int main(){ // int x; // int y; // cin >> x >> y; // cout<<x%y; //return 0; //} //#include<iostream> //using namespace std; //int main(){ // long long int a; // cin >> a; // cout << a + 1; // // return 0; //} //#include<iostream> //using namespace std; //int main (){ // long long int x; // long long int y; // cin >>x >> y; // // cout << x+y << endl; // cout << x-y << endl; // cout << x*y<< endl; // cout << x/y<<endl; // cout << x%y<<endl; // // printf("%.2lf", (double)x/y); // // //return 0; //}
0
0
5
danielygkim11
2023년 6월 03일
In 소스 코드 제출
/* #include <iostream> using namespace std; int main() { cout << "Hello \"world!" << endl << "Hellllllolololo" << "\n" << "WOWWWOW"; // escape sequence return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "Hello" << endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "Hello World" << endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "Hello\nWorld" << endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "'Hello'" <<endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "\"Hello World\"" <<endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "\"!@#$%^&*()\"" << endl; return 0; } */ /* #include<iostream> using namespace std; int main() { cout << "\"C:\\Download\\hello.cpp\"" << endl ; return 0; } */ // //#include<iostream> // //using namespace std; // //int main() { // // // //} /* bit: 0 or 1 bit x 8: 1Byte: 0or1 x 8 >> 2^8 = 256 Byte x 1024 = KB KB x 1024 = MB MB x 1024 = GB GB x 1024 = TB variable type integer int 4Byte: (%d) 32bits: -2147483648~+2147483647 long long int 8Byte: (%lld) 64bits: -922~+922 float float 4Byte (%f) double 8Byte (%lf) character char 1Byte (%c) */ //#include<iostream> // //using namespace std; // //int main() { // int a, b, c; // //// a = 10; //// b = 20; // cin >> a >> b; // cout << a << "~~~~" << b << "~~~" << a+b; // // return 0; //} /* #include<iostream> using namespace std; int main() { int a; cin >> a; cout << a; return 0; } */ /* #include<iostream> using namespace std; int main(){ char a; cin >> a; cout << a; return 0; } */ /* #include<iostream> using namespace std; int main(){ double a; cin >> a; printf("%.6lf", a); return 0; } */ /* #include<iostream> using namespace std; int main(){ int a, b; cin >> a >> b; cout<< a <<" "<<b; return 0; } */ /* #include<iostream> using namespace std; int main (){ char a, b; cin >> a >> b; cout<< b <<" "<<a; return 0; } */ #include<iostream> using namespace std; int main() { double a; cin >> a; printf("%.2lf",a); return 0; }
0
0
16

danielygkim11

더보기
bottom of page