From 2c10f602a4e244628b84387affed57ae2d534d11 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 26 May 2016 07:51:24 +0800 Subject: [PATCH] Create 1397.cpp --- QUSTOJ/1397.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 QUSTOJ/1397.cpp diff --git a/QUSTOJ/1397.cpp b/QUSTOJ/1397.cpp new file mode 100644 index 0000000..6686b03 --- /dev/null +++ b/QUSTOJ/1397.cpp @@ -0,0 +1,36 @@ +#include +#include +#include +using namespace std; + +int main() +{ + vector bus; + bus.clear(); + int tmp; + for(int i=0;i<10;i++) + { + cin>>tmp; + bus.push_back(tmp); + } + int x; + for(x=0;x<10;x++) + { + if(bus[x]!=x+1) + { + break; + } + } + if(x==10) + { + cout<<"10 9 8 7 6 5 4 3 2 1"<=0;i--) + { + cout<