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;
}

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐