Submission #1176463


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

    class Program
    {
    static int d;
   static int t;
   static int[] c;
   static int[] a;
    static void Main()
        {
        
        for (int b = 0; b < 1000; b++)
            {
            d= int.Parse(Console.ReadLine());;
            tv= int.Parse(Console.ReadLine());;
            c= int.Parse(Console.ReadLine());;
            a= int.Parse(Console.ReadLine());;

            for (int i = 0; i < 8; i++)
                {
                if (a[i] == d)
                {
                    Console.Out.WriteLine("sell 1" + i);
                    break;


                }
                else if (c[i] == d && t != 1)
                {
                    Console.Out.WriteLine("fill" + i);
                    break;
                } 
                else if(i==7)
                {

                    Console.Out.WriteLine("pass");
                }
                }
               
               
            }
        }
    }

Submission Info

Submission Time
Task A - 石油王Xの憂鬱
User kazuma0824
Language C# (Mono 4.6.2.0)
Score 0
Code Size 1122 Byte
Status CE

Compile Error

./Main.cs(19,13): error CS0103: The name `tv' does not exist in the current context
./Main.cs(20,20): error CS0029: Cannot implicitly convert type `int' to `int[]'
./Main.cs(21,20): error CS0029: Cannot implicitly convert type `int' to `int[]'