description Problem history Submissions question_mark Qna how_to_vote Vote #1849 upload 191 done 157 how_to_reg 139 평균(mean) timer 1s memory 128MB Problems text_fields 세 정수 A, B, M 이 있다. ( -1000 ≤ A, B, M ≤ 1000) 세 정수 사이에는 (A + B) / 2 = M 인 관계가 성립한다. 입력되는 수는 A, M 두 수이다. 이때 B를 구하는 프로그램을 작성하시오. Input 하나의 행에 두 수 A와 M이 공백으로 구분되어 주어진다. Output B가 되는 정수를 출력한다. Example #1 login Input 11space_bar 15 content_copy logout Output 19 content_copy Example #2 login Input 4space_bar 3 content_copy logout Output 2 content_copy
Problems text_fields 세 정수 A, B, M 이 있다. ( -1000 ≤ A, B, M ≤ 1000) 세 정수 사이에는 (A + B) / 2 = M 인 관계가 성립한다. 입력되는 수는 A, M 두 수이다. 이때 B를 구하는 프로그램을 작성하시오. Input 하나의 행에 두 수 A와 M이 공백으로 구분되어 주어진다. Output B가 되는 정수를 출력한다. Example #1 login Input 11space_bar 15 content_copy logout Output 19 content_copy Example #2 login Input 4space_bar 3 content_copy logout Output 2 content_copy