From abbc51c1eb212d7dceb7b17f82175ffb580ae29a Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Wed, 20 Apr 2016 07:50:27 +0800 Subject: [PATCH 1/2] Create 1450.cpp --- QUSTOJ/1450.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 QUSTOJ/1450.cpp diff --git a/QUSTOJ/1450.cpp b/QUSTOJ/1450.cpp new file mode 100644 index 0000000..90c5568 --- /dev/null +++ b/QUSTOJ/1450.cpp @@ -0,0 +1,27 @@ +#include +#include +#include +using namespace std; +int main() +{ + int inc; + int five,two,one; + int five_max,two_max,one_max; + int ans=0; + scanf("%d",&inc); + five_max=inc/5; + two_max=inc/2; + one_max=inc; + for(five=1;five<=five_max;five++) + { + for(two=1;two<=two_max;two++) + { + for(one=1;one<=one_max;one++) + { + if(5*five+2*two+one==inc) ans++; + } + } + } + printf("%d\n",ans); + return 0; +} From 4257b1e5fb24daa89d284fc822f420cfa4be06e0 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Wed, 20 Apr 2016 07:51:06 +0800 Subject: [PATCH 2/2] Update Readme.md --- QUSTOJ/Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUSTOJ/Readme.md b/QUSTOJ/Readme.md index ec051a3..86a30f3 100644 --- a/QUSTOJ/Readme.md +++ b/QUSTOJ/Readme.md @@ -1,3 +1,3 @@ #青岛科技大学 QUSTOJ -[Goto QUSTOJ](http://acm.qust.edu.cn/problemset.php "QUSTOJ") +[Goto QUSTOJ Problem Set](http://acm.qust.edu.cn/problemset.php "QUSTOJ Problem Set") ![image](/QUSTOJ/qust.jpg)