백준 2588번

Console(콘솔)/알고리즘 2019. 9. 27. 12:30

using System;

 

 

namespace Syntax12

{

    class Program

    {

        static void Main(string[] args)

        {

            int A = int.Parse(Console.ReadLine());

            string B = Console.ReadLine();

            int a = int.Parse(B[0].ToString());

            int b = int.Parse(B[1].ToString());

            int c = int.Parse(B[2].ToString());

            int C = int.Parse(B);

            int aa = A * c;

            int ab = A * b;

            int ac = A * a;

            int ad = A * C;

            Console.WriteLine(aa);

            Console.WriteLine(ab);

            Console.WriteLine(ac);

            Console.WriteLine(ad);

 

        }

    }

}

 

 

'Console(콘솔) > 알고리즘' 카테고리의 다른 글

백준 10998번  (0) 2019.09.27
백준 10172번  (0) 2019.09.27
백준 10171번  (0) 2019.09.27
백준 2739번  (0) 2019.09.27
백준 10817번  (0) 2019.09.27
: