Codeblocks 1061 A Coins(手速)(*800)
http://codeforces.com/contest/1061/problem/A简单手速题,对以后不叫水题了,叫手速题#include<iostream>#include<cstring>#include<cstdio>#include<algorithm>#include&am
·
http://codeforces.com/contest/1061/problem/A
简单手速题,对以后不叫水题了,叫手速题
#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<cmath>
#define ll long long
#define mod 1000000007
#define inf 0x3f3f3f3f
using namespace std;
#define ll long long
int main()
{
int n, s;
cin>>n>>s;
if(n >= s)
{
cout<<1<<endl;
}
else
{
if(s % n == 0)
cout<<s/n<<endl;
else cout<<s/n + 1<<endl;
}
return 0;
}
更多推荐
已为社区贡献6条内容
所有评论(0)