Added 10 solutions
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Solution {
|
||||
public static void main(String [] args) {
|
||||
public static void main(String[] args) {
|
||||
Scanner scan = new Scanner(System.in);
|
||||
int size = scan.nextInt();
|
||||
long sum = 0; // use long to prevent integer overflow
|
||||
|
||||
Reference in New Issue
Block a user