From 4da9cf8ad552e59dd7fdf96f3f9fd022311b0753 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Mon, 24 Oct 2016 17:19:04 +0800 Subject: [PATCH] Create 1871.cpp --- QUSTOJ/1871.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 QUSTOJ/1871.cpp diff --git a/QUSTOJ/1871.cpp b/QUSTOJ/1871.cpp new file mode 100644 index 0000000..8089243 --- /dev/null +++ b/QUSTOJ/1871.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() +{ + int x,y,n,m; + cin>>x>>y>>n>>m; + while(m--) + { + int t; + cin>>t; + n+=t; + while(ny) n-=y-x+1; + cout<