Przeglądaj źródła

上传文件至 ''

meng 5 lat temu
rodzic
commit
c204cb2157
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      D.cpp

+ 17 - 0
D.cpp

@@ -0,0 +1,17 @@
+#include<bits/stdc++.h>
+using namespace std;
+int main()
+{
+    long long a[101];
+    long long t;
+    int i=0;
+    while(cin>>t&&t!=0){
+        a[i++]=t;
+    }
+    i--;
+    for(;i>0;i--){
+        cout<<a[i]<<" ";
+    }
+    cout<<a[0]<<endl;
+    return 0;
+}