Signed-off-by: sairate <sairate@sina.cn>
This commit is contained in:
parent
4c704c2dee
commit
0054706e7f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -2,9 +2,21 @@
|
|||
"Version": 1,
|
||||
"WorkspaceRootPath": "D:\\project\\Project1C\u002B\u002B\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\test.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:test.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u5408\u6570\u5206\u89E3.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u5408\u6570\u5206\u89E3.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u91D1\u5E01\u95EE\u9898.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u91D1\u5E01\u95EE\u9898.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u8BA1\u7B97\u5E73\u65B9\u548C.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u8BA1\u7B97\u5E73\u65B9\u548C.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
|
@ -19,12 +31,51 @@
|
|||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "test.cpp",
|
||||
"DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\test.cpp",
|
||||
"RelativeDocumentMoniker": "test.cpp",
|
||||
"ToolTip": "D:\\project\\Project1C\u002B\u002B\\test.cpp",
|
||||
"RelativeToolTip": "test.cpp",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAwAAAAKAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2024-07-11T07:08:06.846Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 3,
|
||||
"Title": "\u8BA1\u7B97\u5E73\u65B9\u548C.cpp",
|
||||
"DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u8BA1\u7B97\u5E73\u65B9\u548C.cpp",
|
||||
"RelativeDocumentMoniker": "\u8BA1\u7B97\u5E73\u65B9\u548C.cpp",
|
||||
"ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u8BA1\u7B97\u5E73\u65B9\u548C.cpp",
|
||||
"RelativeToolTip": "\u8BA1\u7B97\u5E73\u65B9\u548C.cpp",
|
||||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAAAWAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2024-07-11T06:18:32.644Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "\u91D1\u5E01\u95EE\u9898.cpp",
|
||||
"DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u91D1\u5E01\u95EE\u9898.cpp",
|
||||
"RelativeDocumentMoniker": "\u91D1\u5E01\u95EE\u9898.cpp",
|
||||
"ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u91D1\u5E01\u95EE\u9898.cpp",
|
||||
"RelativeToolTip": "\u91D1\u5E01\u95EE\u9898.cpp",
|
||||
"ViewState": "AQIAAAEAAAAAAAAAAAAswBIAAAAAAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2024-07-11T06:01:38.929Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "\u5408\u6570\u5206\u89E3.cpp",
|
||||
"DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u5408\u6570\u5206\u89E3.cpp",
|
||||
"RelativeDocumentMoniker": "\u5408\u6570\u5206\u89E3.cpp",
|
||||
"ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u5408\u6570\u5206\u89E3.cpp",
|
||||
"RelativeToolTip": "\u5408\u6570\u5206\u89E3.cpp",
|
||||
"ViewState": "AQIAAAMAAAAAAAAAAAAAAAkAAAAPAAAA",
|
||||
"ViewState": "AQIAAAgAAAAAAAAAAAAswA0AAAAFAAAA",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2024-07-11T05:23:00.869Z",
|
||||
"EditorCaption": ""
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -127,6 +127,7 @@
|
|||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="test.cpp" />
|
||||
<ClCompile Include="平方之和.cpp" />
|
||||
<ClCompile Include="合数分解.cpp" />
|
||||
<ClCompile Include="优秀整数精.cpp" />
|
||||
|
@ -139,6 +140,8 @@
|
|||
<ClCompile Include="矩阵取数简.cpp" />
|
||||
<ClCompile Include="矩阵取数记忆.cpp" />
|
||||
<ClCompile Include="矩阵取数高精.cpp" />
|
||||
<ClCompile Include="计算平方和.cpp" />
|
||||
<ClCompile Include="金币问题.cpp" />
|
||||
<ClCompile Include="高精乘.cpp" />
|
||||
<ClCompile Include="高精加.cpp" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -57,5 +57,14 @@
|
|||
<ClCompile Include="优秀正整数质数筛.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="金币问题.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="计算平方和.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="test.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
Binary file not shown.
|
@ -1,2 +1,2 @@
|
|||
合数分解.cpp
|
||||
计算平方和.cpp
|
||||
Project1C++.vcxproj -> D:\project\Project1C++\x64\Debug\Project1C++.exe
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -10,5 +10,7 @@ D:\project\Project1C++\欧几里得.cpp;D:\project\Project1C++\Project1C++\x64\D
|
|||
D:\project\Project1C++\矩阵取数简.cpp;D:\project\Project1C++\Project1C++\x64\Debug\矩阵取数简.obj
|
||||
D:\project\Project1C++\矩阵取数记忆.cpp;D:\project\Project1C++\Project1C++\x64\Debug\矩阵取数记忆.obj
|
||||
D:\project\Project1C++\矩阵取数高精.cpp;D:\project\Project1C++\Project1C++\x64\Debug\矩阵取数高精.obj
|
||||
D:\project\Project1C++\计算平方和.cpp;D:\project\Project1C++\Project1C++\x64\Debug\计算平方和.obj
|
||||
D:\project\Project1C++\金币问题.cpp;D:\project\Project1C++\Project1C++\x64\Debug\金币问题.obj
|
||||
D:\project\Project1C++\高精乘.cpp;D:\project\Project1C++\Project1C++\x64\Debug\高精乘.obj
|
||||
D:\project\Project1C++\高精加.cpp;D:\project\Project1C++\Project1C++\x64\Debug\高精加.obj
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,2 +1,2 @@
|
|||
^D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\三个数的最大公因数.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀整数精.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀正整数.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀正整数质数筛.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\合数分解.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\平方之和.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\数独.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\斐波那契数列.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\欧几里得.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数简.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数记忆.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数高精.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\高精乘.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\高精加.OBJ
|
||||
^D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\三个数的最大公因数.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀整数精.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀正整数.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\优秀正整数质数筛.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\合数分解.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\平方之和.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\数独.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\斐波那契数列.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\欧几里得.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数简.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数记忆.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\矩阵取数高精.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\计算平方和.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\金币问题.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\高精乘.OBJ|D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\高精加.OBJ
|
||||
D:\project\Project1C++\Project1C++\x64\Debug\Project1C++.ilk
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>//函数 cout输出 cin输入
|
||||
// input输入 output输出 stream流
|
||||
using namespace std;//标准命名空间
|
||||
int main() {
|
||||
//int 整型 short long long long
|
||||
//float 浮点型 double
|
||||
//char 字符
|
||||
//string 字符串
|
||||
//cin>>n;
|
||||
//cout<<n;
|
||||
//+ - * / %
|
||||
// > < >= <= == !=
|
||||
//&& || !
|
||||
}
|
Binary file not shown.
Binary file not shown.
50
合数分解.cpp
50
合数分解.cpp
|
@ -1,25 +1,25 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int n,num=2;
|
||||
cin >> n;
|
||||
cout << n << "=";
|
||||
while (n!=1)
|
||||
{
|
||||
if (n/num==1)
|
||||
{
|
||||
cout << num;
|
||||
break;
|
||||
}
|
||||
if (n%num==0)
|
||||
{
|
||||
cout << num<<"*";
|
||||
n /= num;
|
||||
}else
|
||||
{
|
||||
num++;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
//#include <iostream>
|
||||
//using namespace std;
|
||||
//
|
||||
//int main() {
|
||||
// int n,num=2;
|
||||
// cin >> n;
|
||||
// cout << n << "=";
|
||||
// while (n!=1)
|
||||
// {
|
||||
// if (n/num==1)
|
||||
// {
|
||||
// cout << num;
|
||||
// break;
|
||||
// }
|
||||
// if (n%num==0)
|
||||
// {
|
||||
// cout << num<<"*";
|
||||
// n /= num;
|
||||
// }else
|
||||
// {
|
||||
// num++;
|
||||
// }
|
||||
// }
|
||||
// return 0;
|
||||
//}
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
//#include <iostream>
|
||||
//using namespace std;
|
||||
//
|
||||
//int main() {
|
||||
// int n,sum=0;
|
||||
// cin >> n;
|
||||
// for (int i = 1; i <= n; i++)
|
||||
// {
|
||||
// int number = i, is_guan=0;
|
||||
// while (number != 0) {
|
||||
// if (number%10==7)
|
||||
// {
|
||||
// is_guan = 1;
|
||||
// break;
|
||||
// }
|
||||
// number /= 10;
|
||||
// }
|
||||
// if (i%7==0)
|
||||
// {
|
||||
// is_guan = 1;
|
||||
// }
|
||||
// if (is_guan)
|
||||
// {
|
||||
// continue;
|
||||
// }
|
||||
// cout << i<<endl;
|
||||
// sum += i*i;
|
||||
// }
|
||||
// cout << sum;
|
||||
// return 0;
|
||||
//}
|
|
@ -0,0 +1,18 @@
|
|||
//#include <iostream>
|
||||
//using namespace std;
|
||||
//
|
||||
//int main() {
|
||||
// int n,count = 1;
|
||||
// cin >> n;
|
||||
// int sum = 0;
|
||||
// while (n>count)
|
||||
// {
|
||||
// sum += count * count;
|
||||
// //cout << sum << endl;
|
||||
// n -= count;
|
||||
// count++;
|
||||
// }
|
||||
// sum += n * count;
|
||||
// cout << sum;
|
||||
// return 0;
|
||||
//}
|
Loading…
Reference in New Issue