알고리즘/백준 BOJ
[BOJ C#] 10162 전자레인지
왹져박사
2023. 1. 31. 13:19
using System;
namespace _10162
{
class Program
{
static void Main(string[] args)
{
int a = 300;
int b = 60;
int c = 10;
int t = int.Parse(Console.ReadLine());
if (t % 10 != 0)
Console.WriteLine("-1");
else
{
int clickA = t / a;
t = t % a;
int clickB = t / b;
t = t % b;
int clickC = t / c;
Console.WriteLine("{0} {1} {2}", clickA, clickB, clickC);
}
}
}
}