Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
sabira-khan committed Apr 5, 2022
1 parent 37e0fb3 commit 29af4df
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions JavaSolutions/src/com/gitproject/Beecrowd1921_uri.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.gitproject;

import java.util.Scanner;

public class Beecrowd1921_uri {
public static void main(String[] args) {
Scanner s = new Scanner( System . in );

long n = s.nextLong();
long res = ( n * ( n - 3 )) / 2 ;
System.out.println(res);
}
}

0 comments on commit 29af4df

Please sign in to comment.