description Problem history Submissions question_mark Qna how_to_vote Vote #5948 upload 29 done 8 how_to_reg 5 오각오각해 timer 1s memory 1024MB Problems text_fields 오각형은 단계가 증가할수록 더 오각오각해진다. 여기서 오각오각해진다는 말은 위의 그림을 참조하자.N단계에서 점의 개수가 몇 개일지 알아보자. Input 첫 줄에 N이 주어진다. (1 ≤ N ≤ 10,000,000) Output N단계의 점의 개수를 1\,000\,003로 나눈 나머지를 출력한다. Example #1 login Input 1 content_copy logout Output 5 content_copy Example #2 login Input 2 content_copy logout Output 12 content_copy Example #3 login Input 3 content_copy logout Output 22 content_copy
Problems text_fields 오각형은 단계가 증가할수록 더 오각오각해진다. 여기서 오각오각해진다는 말은 위의 그림을 참조하자.N단계에서 점의 개수가 몇 개일지 알아보자. Input 첫 줄에 N이 주어진다. (1 ≤ N ≤ 10,000,000) Output N단계의 점의 개수를 1\,000\,003로 나눈 나머지를 출력한다. Example #1 login Input 1 content_copy logout Output 5 content_copy Example #2 login Input 2 content_copy logout Output 12 content_copy Example #3 login Input 3 content_copy logout Output 22 content_copy