Final commit (hopefully)

master
gnomerd 5 years ago
parent 041ad2fe5f
commit 93f2aa7a12
  1. 13
      2019/1/Program.cs
  2. BIN
      2019/1/bin/Debug/netcoreapp2.2/1.dll
  3. BIN
      2019/1/bin/Debug/netcoreapp2.2/1.pdb
  4. BIN
      2019/1/obj/Debug/netcoreapp2.2/1.assets.cache
  5. BIN
      2019/1/obj/Debug/netcoreapp2.2/1.dll
  6. BIN
      2019/1/obj/Debug/netcoreapp2.2/1.pdb

@ -5,8 +5,17 @@ namespace _1
{
class Program {
static void Main(string[] args) {
string input = System.IO.File.ReadAllText(@"./input.txt");
Console.Write(input);
string input = File.ReadAllText(@"./input.txt");
string[] inputs = input.Split( Environment.NewLine, StringSplitOptions.None );
int[] output = new int[100];
double input_;
for ( int i = 0; i < inputs.Length; i++ ) {
Console.WriteLine( inputs[i] );
input_ = Convert.ToDouble(inputs[i]);
output[i] = (int)Math.Floor( input_/3 ) - 2;
Console.WriteLine(output[i]);
}
}
}
}

Loading…
Cancel
Save