Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUPUSII LUI STALIN
- Robert: #include <iostream> #include <fstream> using namespace std; ifstream fin("detdrum.in"); ofstream fout("detdrum.out"); int n , k , t[105]; void drum(int k) { if(k != 0) { fout << k << " "; drum(t[k]); } } int main() { fin >> n >> k; for(int i = 1 ; i <= n ; i ++) fin >> t[i]; drum(k); return 0; }]
- 2019-03-26 20:23:16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement