diff --git a/4096_gamejingzi/Readme.md b/4096_gamejingzi/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/4096_gamejingzi/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/4096_gamejingzi/doc/Readme.md b/4096_gamejingzi/doc/Readme.md new file mode 100644 index 0000000..4e768b5 --- /dev/null +++ b/4096_gamejingzi/doc/Readme.md @@ -0,0 +1 @@ +# \ No newline at end of file diff --git a/4096_gamejingzi/doc/浜曞瓧娓告垙.pdf b/4096_gamejingzi/doc/浜曞瓧娓告垙.pdf new file mode 100644 index 0000000..e580a28 Binary files /dev/null and b/4096_gamejingzi/doc/浜曞瓧娓告垙.pdf differ diff --git a/4096_gamejingzi/main.cpp b/4096_gamejingzi/main.cpp new file mode 100644 index 0000000..f05099f --- /dev/null +++ b/4096_gamejingzi/main.cpp @@ -0,0 +1,123 @@ +#include +#include +using namespace std; +int main() +{ + int a[3][3] = { 0 }; + string s[3]; + bool cunzai[27] = { 0 }, win[27][27] = { 0 }; + int dui[10] = { 0 }; + int chang = 0; + + for (int i = 0; i < 3; i++) { + cin >> s[i]; + for (int j = 0; j < 3; j++) { + int now = s[i][j] - 'A' + 1; + a[i][j] = now; + if (cunzai[now] != 1) { + cunzai[now] = 1; + dui[++chang] = now; + } + } + } + + // for(int i=0;i<3;i++){ + // for(int j=0;j<3;j++){ + // cout<