IordanRujinov

Untitled

Jan 24th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.13 KB | None | 0 0
  1. using System.CodeDom.Compiler;
  2. using System.Collections.Generic;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Diagnostics.CodeAnalysis;
  6. using System.Globalization;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Reflection;
  10. using System.Runtime.Serialization;
  11. using System.Text.RegularExpressions;
  12. using System.Text;
  13. using System;
  14.  
  15. class Solution {
  16.  
  17.  
  18.  
  19.     // Complete the findNumber function below.
  20.     static string findNumber(List<int> arr, int k) {
  21.  
  22.  
  23.     }
  24.  
  25.     static void Main(string[] args) {
  26.         TextWriter textWriter = new StreamWriter(@System.Environment.GetEnvironmentVariable("OUTPUT_PATH"), true);
  27.  
  28.         int arrCount = Convert.ToInt32(Console.ReadLine().Trim());
  29.  
  30.         List<int> arr = new List<int>();
  31.  
  32.         for (int i = 0; i < arrCount; i++) {
  33.             int arrItem = Convert.ToInt32(Console.ReadLine().Trim());
  34.             arr.Add(arrItem);
  35.         }
  36.  
  37.         int k = Convert.ToInt32(Console.ReadLine().Trim());
  38.  
  39.         string res = findNumber(arr, k);
  40.  
  41.         textWriter.WriteLine(res);
  42.  
  43.         textWriter.Flush();
  44.         textWriter.Close();
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment