Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.CodeDom.Compiler;
- using System.Collections.Generic;
- using System.Collections;
- using System.ComponentModel;
- using System.Diagnostics.CodeAnalysis;
- using System.Globalization;
- using System.IO;
- using System.Linq;
- using System.Reflection;
- using System.Runtime.Serialization;
- using System.Text.RegularExpressions;
- using System.Text;
- using System;
- class Solution {
- // Complete the findNumber function below.
- static string findNumber(List<int> arr, int k) {
- }
- static void Main(string[] args) {
- TextWriter textWriter = new StreamWriter(@System.Environment.GetEnvironmentVariable("OUTPUT_PATH"), true);
- int arrCount = Convert.ToInt32(Console.ReadLine().Trim());
- List<int> arr = new List<int>();
- for (int i = 0; i < arrCount; i++) {
- int arrItem = Convert.ToInt32(Console.ReadLine().Trim());
- arr.Add(arrItem);
- }
- int k = Convert.ToInt32(Console.ReadLine().Trim());
- string res = findNumber(arr, k);
- textWriter.WriteLine(res);
- textWriter.Flush();
- textWriter.Close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment