We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3b592e commit d717280Copy full SHA for d717280
2025-09-09/김소희/백준_14607_피자.java
@@ -0,0 +1,9 @@
1
+import java.util.*;
2
+import java.io.*;
3
+public class Main {
4
+ public static void main(String[] args) throws IOException {
5
+ BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
6
+ long N = Integer.parseInt(br.readLine());
7
+ System.out.println((N*(N-1))/2);
8
+ }
9
+}
0 commit comments