Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace ExtraExercise_TopInteger
- {
- class Program
- {
- static void Main(string[] args)
- {
- long[] inputArr = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
- for (long i = 0; i < inputArr.Length; i++)
- {
- bool isItBigger = true;
- for (long j = i + 1; j < inputArr.Length; j++)
- {
- if (inputArr[i] <= inputArr[j])
- {
- isItBigger = false;
- }
- }
- if (isItBigger)
- {
- Console.Write(inputArr[i] + " ");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement