반응형 분류 전체보기505 백준 C# 2588 using System; namespace baek2 { class Program { static void Main(string[] args) { string inputA, inputB; inputA = Console.ReadLine(); inputB = Console.ReadLine(); int A = int.Parse(inputA); int B = int.Parse(inputB); Console.WriteLine($"{(A * (B%10))}"); Console.WriteLine($"{(A * ((B/10)%10))}"); Console.WriteLine($"{(A * (B/100))}"); Console.WriteLine($"{(A * B)}"); } } } 2023. 4. 7. 백준 C# 10430 using System; namespace baek2 { class Program { static void Main(string[] args) { string input; string[] token; input = Console.ReadLine(); token = input.Split(); int A = int.Parse(token[0]); int B = int.Parse(token[1]); int C = int.Parse(token[2]); Console.WriteLine( (A + B) % C ); Console.WriteLine(((A % C) + (B % C))%C); Console.WriteLine((A * B) % C); Console.WriteLine(((A % C) * ( B % C))%C.. 2023. 4. 7. 백준 C# 18108 using System; namespace baek2 { class Program { static void Main(string[] args) { string input; input = Console.ReadLine(); int A = int.Parse(input); Console.WriteLine(A - 543 ); } } } 2023. 4. 7. 백준 C# 10926 using System; namespace baek2 { class Program { static void Main(string[] args) { string input; input = Console.ReadLine(); Console.WriteLine($"{input}??!"); } } } 2023. 4. 6. 백준 C# 10869 using System; namespace baek2 { class Program { static void Main(string[] args) { string input; string[] token; input = Console.ReadLine(); token = input.Split(' '); int A = int.Parse(token[0]); int B = int.Parse(token[1]); Console.WriteLine($"{(A+B)}"); Console.WriteLine($"{(A-B)}"); Console.WriteLine($"{(A*B)}"); Console.WriteLine($"{(A/B)}"); Console.WriteLine($"{(A%B)}"); } } } 2023. 4. 6. 백준 C# 1008 using System; namespace baek2 { class Program { static void Main(string[] args) { string input; string[] token; input = Console.ReadLine(); token = input.Split(' '); double A = double.Parse(token[0]); double B = double.Parse(token[1]); Console.WriteLine($"{(A/B)}"); } } } 2023. 4. 6. 이전 1 ··· 79 80 81 82 83 84 85 다음 반응형