If more than one way of giving cash gives the same imbalance you should use the one which gives the greater number of \$2 coins. If the number of \$2 coins is the same, then prefer the one with the largest number of \$1 coins, then 50c, etc.
에서 greater number of xx coins가 거스름돈인지 잔고인지 해석의 여지가 있는데, 어느 쪽이든 상관없이 AC를 받습니다. 타이가 발동되는 케이스 자체가 없는 것 같습니다.
출력 형식은 거스름돈으로 줄 동전의 종류의 가지수에 따라 달라지고, 각각 아래처럼 하면 됩니다.
bubbler 4년 전 1
If more than one way of giving cash gives the same imbalance you should use the one which gives the greater number of \$2 coins. If the number of \$2 coins is the same, then prefer the one with the largest number of \$1 coins, then 50c, etc.
에서 greater number of xx coins가 거스름돈인지 잔고인지 해석의 여지가 있는데, 어느 쪽이든 상관없이 AC를 받습니다. 타이가 발동되는 케이스 자체가 없는 것 같습니다.
출력 형식은 거스름돈으로 줄 동전의 종류의 가지수에 따라 달라지고, 각각 아래처럼 하면 됩니다.