Menu Close
  • Categories
  • Tags
  • About
Close
    • llmooon's blog
    • Categories
    • Tags
    • Search

    Boj15894 수학은 체육과목입니다

    Published: May 02, 2019 by 아형 Creative Commons Licence

    • Categories:
    • Algorithm 74
    • Tags:
    • 알고리즘 72

    만들어지는 도형의 둘레는 결국 n*4임을 알 수 있다. 꺽여 있는 부분을 이어 붙이면 그 길이가 결국 n이기 떄문이다.

    #include<iostream>
    using namespace std;
    int num;
    int main() {
    	scanf("%d", &num);
    	printf("%lld", (long long)num * 4);
    }
    
    Back to Top
    ← Boj12738 가장 긴 증가하는 부분 수열3 Boj2420 사파리월드 →

    About

    A gem-based responsive simple texture styled Jekyll theme.

    Theme Simple Texture developed by Yi Zeng, powered by Jekyll.

    Back to Top