description Problem history Submissions question_mark Qna how_to_vote Vote #4229 upload 4 done 3 how_to_reg 3 서로소 쌍의 개수 timer 2s memory 128MB Problems text_fields N개의 양의 정수가 주어지면 서로소인 쌍의 개수를 구하는 프로그램을 작성하여라. Input 첫째 줄에 N이 주어진다. (1 ≤ N ≤ 105)둘째 줄에 N개의 정수가 주어진다. (1 ≤ 수 ≤ 106) Output 서로소인 쌍의 개수를 출력한다. Example #1 login Input 5 keyboard_return1space_bar 2space_bar 3space_bar 4space_bar 5 content_copy logout Output 9 content_copy Example #2 login Input 3 keyboard_return6space_bar 10space_bar 15 content_copy logout Output 0 content_copy
Problems text_fields N개의 양의 정수가 주어지면 서로소인 쌍의 개수를 구하는 프로그램을 작성하여라. Input 첫째 줄에 N이 주어진다. (1 ≤ N ≤ 105)둘째 줄에 N개의 정수가 주어진다. (1 ≤ 수 ≤ 106) Output 서로소인 쌍의 개수를 출력한다. Example #1 login Input 5 keyboard_return1space_bar 2space_bar 3space_bar 4space_bar 5 content_copy logout Output 9 content_copy Example #2 login Input 3 keyboard_return6space_bar 10space_bar 15 content_copy logout Output 0 content_copy