A repository that sets up a C++ Project with the olcPixelGameEngine already loaded.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
982 B

#include <iostream>
#include <map>
int main() {
std::map<std::string,bool> vals;
for (int i=1;i<=15;i++) {
for (int j=1;j<=15;j++) {
for (int k=1;k<=15;k++) {
if (i+j+k==15) {
std::string testStr;
int val1=i,val2=j,val3=k;
if (i<j&&i<k) {
val1=i;
if (j<k) {
val2=j;
val3=k;
} else {
val2=k;
val3=j;
}
}
if (j<i&&j<k) {
val1=j;
if (i<k) {
val2=i;
val3=k;
} else {
val2=k;
val3=i;
}
}
if (k<i&&k<j) {
val1=k;
if (i<j) {
val2=i;
val3=j;
} else {
val2=j;
val3=i;
}
}
if (!vals.count(std::to_string(val1)+"_"+std::to_string(val2)+"_"+std::to_string(val3))) {
std::cout<<std::to_string(val1)+"_"+std::to_string(val2)+"_"+std::to_string(val3)<<std::endl;
vals[std::to_string(val1)+"_"+std::to_string(val2)+"_"+std::to_string(val3)]=true;
}
}
}
}
}
}