本文主要是介绍hdu-1248-寒冰王座,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
#include<stdio.h>int main()
{
int s;
scanf("%d",&s);
while(s--)
{
int n,a,b;
scanf("%d",&n);
a=n/150;
b=n%150;
while(a&&b>=50)
{
a--;
b-=50;
}
printf("%d\n",b);
}
return 0;
}
这篇关于hdu-1248-寒冰王座的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!