From 4d594d500394efea4588ff108706f89c67e821b2 Mon Sep 17 00:00:00 2001 From: himanshu288m <41584658+himanshu288m@users.noreply.github.com> Date: Sat, 20 Oct 2018 11:32:23 +0530 Subject: [PATCH] TRICOIN Coins And Triangle --- TRICOIN.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 TRICOIN.java diff --git a/TRICOIN.java b/TRICOIN.java new file mode 100644 index 0000000..19b7cc6 --- /dev/null +++ b/TRICOIN.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author jai sudh + */ +import java.util.*; +class TRICOIN{ + public static void main(String args[]){ + Scanner sc=new Scanner(System.in); + int T = sc.nextInt(); + int[] res=new int[T]; + for(int a=0;a0;i++,r++){ + if(no_Coin