Paste Search Dynamic
Recent pastes
processData
  1. using system;
  2. using system.Collections.Generic;
  3. using system.IO;
  4. using system.Linq;
  5.  
  6. /* Don't change anything here.
  7.  * Do not add any other imports. You need to write
  8.  * this program using only these libraries
  9.  */
  10.  
  11. namespace Program
  12. {
  13.     public class Program
  14.     {
  15.  
  16.         /* DO NOT CHANGE ANYTHING ABOVE THIS LINE */
  17.  
  18.         private static int processData(IEnumerable<string> lines)
  19.         {
  20.             /*
  21.              * Do not make any changes outside this method.
  22.              *
  23.              * Modify this method to process `array` as indicated
  24.              * in the question. At the end, return the appropriate value
  25.              *
  26.              * Do not print anything in this method
  27.              *
  28.              * Submit this entire program (not just this function)
  29.              * as your answer
  30.              */
  31.             return 0;
  32.         }
  33.  
  34.         /* DO NOT CHANGE ANYTHING BELOW THIS LINE */
  35.  
  36.         static void Main(string[] args)
  37.         {
  38.             try
  39.             {
  40.                 int retVal = processData(File.ReadAllLines("input.txt"));
  41.                 File.WriteAllLines("output.txt", new []{"" + retVal});
  42.             }
  43.             catch (IOException ex)
  44.             {
  45.                 Console.WriteLine(ex.Message);
  46.             }
  47.         }
  48.  
  49.     }
  50. }
  51.  
Parsed in 0.004 seconds