ベクジュン·オンライン·ジャージー / 掛け算
2588
📎Link :
https://www.acmicpc.net/problem/2588
指紋表示
解答『かいとう』
コード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| using System; using System.Collections.Generic; using System.Linq; using static System.Console;
namespace boj { class Program { static void Main(string[] args) { string a = ReadLine(); string b = ReadLine();
WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[2])); WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[1])); WriteLine(int.Parse(a) * (int)Char.GetNumericValue(b[0])); WriteLine(int.Parse(a) * int.Parse(b)); } } }
|
結果『けっか』