... (int)st.size()); while( !st.empty() ) { int &tmp = st.top(); printf("%d ", tmp); sum += tmp; st.pop(); } printf("\nTotal: %d\n", sum); return 0; } ...
確定! 回上一頁