Cod sursa(job #3198949)
Utilizator | Data | 31 ianuarie 2024 10:24:22 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.27 kb |
#include <bits/stdc++.h>
using namespace std;
char s[256],x[256];
char sep[]=" ";
int main()
{
cin.get(s,256);
strcpy(x,s);
char *p=strtok(s,sep);
while(p!=nullptr)
{
cout<<p<<endl;
p=strtok(NULL,sep);
}
cout<<x;
}