简单题,货币换算
![ContractedBlock.gif](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![ExpandedBlockStart.gif](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
#include
<
iostream
>
#include < cstdio >
#include < cstdlib >
#include < cstring >
using namespace std;
int main()
{
// freopen("D:\\t.txt", "r", stdin);
int t, n, tt = 0 ;
scanf( " %d " , & t);
while (t -- )
{
tt ++ ;
scanf( " %d " , & n);
printf( " %d %d QUARTER(S), %d DIME(S), %d NICKEL(S), %d PENNY(S)\n " , tt, n / 25 , (n % 25 ) / 10 , (n % 25 % 10 ) / 5 , n % 5 );
}
return 0 ;
}
#include < cstdio >
#include < cstdlib >
#include < cstring >
using namespace std;
int main()
{
// freopen("D:\\t.txt", "r", stdin);
int t, n, tt = 0 ;
scanf( " %d " , & t);
while (t -- )
{
tt ++ ;
scanf( " %d " , & n);
printf( " %d %d QUARTER(S), %d DIME(S), %d NICKEL(S), %d PENNY(S)\n " , tt, n / 25 , (n % 25 ) / 10 , (n % 25 % 10 ) / 5 , n % 5 );
}
return 0 ;
}