From f0e9ba93886e322a73bcf675ea200b2ba01810ae Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Fri, 7 Oct 2016 21:32:47 +0800 Subject: [PATCH] Create 3560.cpp --- SDUTOJ/3560.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 SDUTOJ/3560.cpp diff --git a/SDUTOJ/3560.cpp b/SDUTOJ/3560.cpp new file mode 100644 index 0000000..0903209 --- /dev/null +++ b/SDUTOJ/3560.cpp @@ -0,0 +1,17 @@ +#include +#include +#include +using namespace std; + +int main() +{ + int t; + scanf("%d",&t); + while(t--) + { + int a,b; + scanf("%d %d",&a,&b); + printf("%d\n",a/b+!!(a%b)); + } + return 0; +}