Дамп всех задач
This commit is contained in:
19
C++/перебор/1.cpp
Normal file
19
C++/перебор/1.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
setlocale(LC_ALL, "Russian");
|
||||
int i,x,y;
|
||||
for (x=1; x<=9; x++) {
|
||||
for (y=1; y<=9; y++) {
|
||||
i=((x*10000+1022)*10)+y;
|
||||
if (i%7==0 && i%8==0 && i%9==0)
|
||||
cout <<i<<endl;
|
||||
}
|
||||
}
|
||||
system ("pause");
|
||||
return 0;
|
||||
}
|
||||
|
||||
BIN
C++/перебор/2.cpp
Normal file
BIN
C++/перебор/2.cpp
Normal file
Binary file not shown.
BIN
C++/перебор/3.cpp
Normal file
BIN
C++/перебор/3.cpp
Normal file
Binary file not shown.
19
C++/перебор/4.cpp
Normal file
19
C++/перебор/4.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
setlocale(LC_ALL, "Russian");
|
||||
int x,y;
|
||||
for (x=1; x<=9; x++) {
|
||||
for (y=1; y<=9; y++) {
|
||||
if ((x*x*x*x*x)+(y*y*y*y*y)==1025) {
|
||||
cout <<x<<"^5+"<<y<<"^5=1025\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
system ("pause");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user