Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- #include <fstream>
- using namespace std;
- int wyn=0;
- string slo;
- ifstream otw;
- char tab[10007];
- int main()
- {
- for (int i=1; i<=100; i++)
- {
- printf("%d", i);
- printf("%c\n", '%');
- system("naj.exe < smi01.in > out.out");
- otw.open("out.out");
- otw >> slo;
- otw.close();
- for (int j=0; j<=2000; j++)
- tab[j]=0;
- tab[0]='m';
- tab[1]='d';
- tab[2]='5';
- tab[3]='.';
- tab[4]='e';
- tab[5]='x';
- tab[6]='e';
- tab[7]=' ';
- for (int j=0; j<slo.size(); j++)
- {
- tab[8+j]=slo[j];
- }
- tab[8+slo.size()]=' ';
- tab[9+slo.size()]='>';
- tab[10+slo.size()]=' ';
- tab[2+9+slo.size()]='o';
- tab[2+10+slo.size()]='u';
- tab[2+11+slo.size()]='t';
- tab[2+12+slo.size()]='1';
- tab[2+13+slo.size()]='.';
- tab[2+14+slo.size()]='o';
- tab[2+15+slo.size()]='u';
- tab[2+16+slo.size()]='t';
- system(tab);
- if (system("licz.exe < out1.out")>=wyn)
- {
- wyn=system("licz.exe < out1.out");
- system("prze.exe < out.out > smi01.out");
- }
- }
- printf("GOTOWE\n\n");
- return 0;
- }
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- using namespace std;
- char tab[10007];
- string slo;
- int wyn;
- int main()
- {
- for (char i='a'; i<='z'; i++)
- {
- for (char j='a'; j<='z'; j++)
- {
- printf("%c%c\n", i, j);
- for (int k=0; k<=25; k++)
- tab[j]=0;
- tab[0]='m';
- tab[1]='d';
- tab[2]='5';
- tab[3]='.';
- tab[4]='e';
- tab[5]='x';
- tab[6]='e';
- tab[7]=' ';
- tab[8]=i;
- tab[9]=j;
- tab[10]=' ';
- tab[11]='>';
- tab[12]=' ';
- tab[13]='o';
- tab[14]='u';
- tab[15]='t';
- tab[16]='1';
- tab[17]='.';
- tab[18]='o';
- tab[19]='u';
- tab[20]='t';
- system(tab);
- if (system("licz.exe < out1.out")>=wyn)
- {
- wyn=system("licz.exe < out1.out");
- slo=i+j;
- printf("%d %c%c\n", wyn, i, j);
- system("prze.exe < out1.out > smi02.out");
- }
- }
- }
- return 0;
- }
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- #include <ctime>
- using namespace std;
- int n;
- int main()
- {
- srand(time(0)^n);
- scanf("%d", &n);
- for (int i=1; i<=n; i++)
- printf("%c", (rand()%26)+'a');
- return 0;
- }
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- using namespace std;
- int wyn;
- string slo;
- int main()
- {
- cin >> slo;
- for (int i=0; i<slo.size(); i++)
- {
- if (slo[i]<='9')
- wyn+=slo[i]-'0';
- else
- wyn+=slo[i]-'a'+10;
- }
- return wyn;
- }
- #include <iostream>
- #include <cstdio>
- #include <algorithm>
- using namespace std;
- string slo;
- int main()
- {
- cin >> slo;
- cout << slo;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement