Startup and Tech
Sunday, 26 July 2020
Codeforces 116A Solution - Tram Solution In Java
Program
import java.util.*; public class x { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i=0; int a[] = new int[1000]; int b[] = new int[1000]; int max = 0; for(i=0;i
max) { max = b[i]; } } System.out.println(max); } }
Output
I/P : ----- 4 0 3 2 5 4 2 4 0 ----- O/P : 6 -----
Codeforces 58A Solution - Chat room Solution In Java
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment