commit 00ba062b3c811f6a9c493bc98c1d9bc29750a565 Author: sairate Date: Thu Jul 11 13:10:26 2024 +0800 Signed-off-by: sairate diff --git a/.vs/Project1C++/FileContentIndex/41f327a0-fa99-47cb-a4ff-74ba304059e3.vsidx b/.vs/Project1C++/FileContentIndex/41f327a0-fa99-47cb-a4ff-74ba304059e3.vsidx new file mode 100644 index 0000000..abae4d1 Binary files /dev/null and b/.vs/Project1C++/FileContentIndex/41f327a0-fa99-47cb-a4ff-74ba304059e3.vsidx differ diff --git a/.vs/Project1C++/FileContentIndex/4703883e-f263-4810-abfa-be93b431f8da.vsidx b/.vs/Project1C++/FileContentIndex/4703883e-f263-4810-abfa-be93b431f8da.vsidx new file mode 100644 index 0000000..dfaa9a0 Binary files /dev/null and b/.vs/Project1C++/FileContentIndex/4703883e-f263-4810-abfa-be93b431f8da.vsidx differ diff --git a/.vs/Project1C++/FileContentIndex/4b4fea45-e736-4929-a31e-5e6788825c28.vsidx b/.vs/Project1C++/FileContentIndex/4b4fea45-e736-4929-a31e-5e6788825c28.vsidx new file mode 100644 index 0000000..5d89e60 Binary files /dev/null and b/.vs/Project1C++/FileContentIndex/4b4fea45-e736-4929-a31e-5e6788825c28.vsidx differ diff --git a/.vs/Project1C++/FileContentIndex/4d72633a-f251-4964-93bb-45acad4d4c05.vsidx b/.vs/Project1C++/FileContentIndex/4d72633a-f251-4964-93bb-45acad4d4c05.vsidx new file mode 100644 index 0000000..9b4de6e Binary files /dev/null and b/.vs/Project1C++/FileContentIndex/4d72633a-f251-4964-93bb-45acad4d4c05.vsidx differ diff --git a/.vs/Project1C++/FileContentIndex/a3e9f624-adc2-4dc4-9ecd-0aa63a5e34e3.vsidx b/.vs/Project1C++/FileContentIndex/a3e9f624-adc2-4dc4-9ecd-0aa63a5e34e3.vsidx new file mode 100644 index 0000000..300b2a6 Binary files /dev/null and b/.vs/Project1C++/FileContentIndex/a3e9f624-adc2-4dc4-9ecd-0aa63a5e34e3.vsidx differ diff --git a/.vs/Project1C++/v17/.suo b/.vs/Project1C++/v17/.suo new file mode 100644 index 0000000..4577b32 Binary files /dev/null and b/.vs/Project1C++/v17/.suo differ diff --git a/.vs/Project1C++/v17/DocumentLayout.json b/.vs/Project1C++/v17/DocumentLayout.json new file mode 100644 index 0000000..aa75f1d --- /dev/null +++ b/.vs/Project1C++/v17/DocumentLayout.json @@ -0,0 +1,231 @@ +{ + "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\\test2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:test2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u5E73\u65B9\u4E4B\u548C.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u5E73\u65B9\u4E4B\u548C.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u7B80.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u77E9\u9635\u53D6\u6570\u7B80.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u52A0.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u9AD8\u7CBE\u52A0.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u6570\u72EC.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u6570\u72EC.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u4F18\u79C0\u6B63\u6574\u6570.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6574\u6570\u7CBE.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u4F18\u79C0\u6574\u6570\u7CBE.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u4E58.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u9AD8\u7CBE\u4E58.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u6B27\u51E0\u91CC\u5F97.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u6B27\u51E0\u91CC\u5F97.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{653F23DB-4E65-4232-A488-E9A53268A0A6}|Project1C\u002B\u002B.vcxproj|solutionrelative:\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 1, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 7, + "Title": "\u4F18\u79C0\u6B63\u6574\u6570.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570.cpp", + "RelativeDocumentMoniker": "\u4F18\u79C0\u6B63\u6574\u6570.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570.cpp", + "RelativeToolTip": "\u4F18\u79C0\u6B63\u6574\u6570.cpp", + "ViewState": "AQIAACUAAAAAAAAAAAAIwDQAAAAcAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-02T11:29:46.267Z", + "IsPinned": true + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "test2.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\test2.cpp", + "RelativeDocumentMoniker": "test2.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\test2.cpp", + "RelativeToolTip": "test2.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAAALAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-20T12:23:37.796Z", + "IsPinned": true, + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "\u5E73\u65B9\u4E4B\u548C.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u5E73\u65B9\u4E4B\u548C.cpp", + "RelativeDocumentMoniker": "\u5E73\u65B9\u4E4B\u548C.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u5E73\u65B9\u4E4B\u548C.cpp", + "RelativeToolTip": "\u5E73\u65B9\u4E4B\u548C.cpp", + "ViewState": "AQIAAAwAAAAAAAAAAADwvxkAAAAKAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-20T11:10:48.333Z" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "\u6570\u72EC.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u6570\u72EC.cpp", + "RelativeDocumentMoniker": "\u6570\u72EC.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u6570\u72EC.cpp", + "RelativeToolTip": "\u6570\u72EC.cpp", + "ViewState": "AQIAAEYAAAAAAAAAAAA6wFwAAAADAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-07-03T11:40:31.947Z" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp", + "RelativeDocumentMoniker": "\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp", + "RelativeToolTip": "\u4F18\u79C0\u6B63\u6574\u6570\u8D28\u6570\u7B5B.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-07-03T06:24:13.737Z" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "\u77E9\u9635\u53D6\u6570\u7B80.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u7B80.cpp", + "RelativeDocumentMoniker": "\u77E9\u9635\u53D6\u6570\u7B80.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u7B80.cpp", + "RelativeToolTip": "\u77E9\u9635\u53D6\u6570\u7B80.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-22T03:41:49.736Z" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "\u9AD8\u7CBE\u52A0.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u52A0.cpp", + "RelativeDocumentMoniker": "\u9AD8\u7CBE\u52A0.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u52A0.cpp", + "RelativeToolTip": "\u9AD8\u7CBE\u52A0.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-19T11:58:47.676Z" + }, + { + "$type": "Document", + "DocumentIndex": 9, + "Title": "\u9AD8\u7CBE\u4E58.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u4E58.cpp", + "RelativeDocumentMoniker": "\u9AD8\u7CBE\u4E58.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u9AD8\u7CBE\u4E58.cpp", + "RelativeToolTip": "\u9AD8\u7CBE\u4E58.cpp", + "ViewState": "AQIAACIAAAAAAAAAAAAwwDIAAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-19T11:09:18.298Z" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp", + "RelativeDocumentMoniker": "\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp", + "RelativeToolTip": "\u6590\u6CE2\u90A3\u5951\u6570\u5217.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAABUAAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-19T11:09:15.81Z" + }, + { + "$type": "Document", + "DocumentIndex": 8, + "Title": "\u4F18\u79C0\u6574\u6570\u7CBE.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6574\u6570\u7CBE.cpp", + "RelativeDocumentMoniker": "\u4F18\u79C0\u6574\u6570\u7CBE.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u4F18\u79C0\u6574\u6570\u7CBE.cpp", + "RelativeToolTip": "\u4F18\u79C0\u6574\u6570\u7CBE.cpp", + "ViewState": "AQIAACwAAAAAAAAAAAA5wDYAAAASAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-15T10:28:26.34Z" + }, + { + "$type": "Document", + "DocumentIndex": 11, + "Title": "\u6B27\u51E0\u91CC\u5F97.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u6B27\u51E0\u91CC\u5F97.cpp", + "RelativeDocumentMoniker": "\u6B27\u51E0\u91CC\u5F97.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u6B27\u51E0\u91CC\u5F97.cpp", + "RelativeToolTip": "\u6B27\u51E0\u91CC\u5F97.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAIAAAACAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-07T10:56:42.343Z" + }, + { + "$type": "Document", + "DocumentIndex": 10, + "Title": "\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp", + "RelativeDocumentMoniker": "\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp", + "RelativeToolTip": "\u4E09\u4E2A\u6570\u7684\u6700\u5927\u516C\u56E0\u6570.cpp", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAAgAAAAcAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-02T10:43:33.062Z" + }, + { + "$type": "Document", + "DocumentIndex": 12, + "Title": "\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp", + "DocumentMoniker": "D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp", + "RelativeDocumentMoniker": "\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp", + "ToolTip": "D:\\project\\Project1C\u002B\u002B\\\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp", + "RelativeToolTip": "\u77E9\u9635\u53D6\u6570\u8BB0\u5FC6.cpp", + "ViewState": "AQIAACcAAAAAAAAAAAAAAD0AAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-06-02T08:16:45.5Z" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/.vs/Project1C++/v17/Preview/Browse.VC.db b/.vs/Project1C++/v17/Preview/Browse.VC.db new file mode 100644 index 0000000..6eda5e0 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/Browse.VC.db differ diff --git a/.vs/Project1C++/v17/Preview/Browse.VC.db-shm b/.vs/Project1C++/v17/Preview/Browse.VC.db-shm new file mode 100644 index 0000000..deefe84 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/Browse.VC.db-shm differ diff --git a/.vs/Project1C++/v17/Preview/Browse.VC.db-wal b/.vs/Project1C++/v17/Preview/Browse.VC.db-wal new file mode 100644 index 0000000..4aa0373 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/Browse.VC.db-wal differ diff --git a/.vs/Project1C++/v17/Preview/Browse.VC.opendb b/.vs/Project1C++/v17/Preview/Browse.VC.opendb new file mode 100644 index 0000000..a0aff90 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/Browse.VC.opendb differ diff --git a/.vs/Project1C++/v17/Preview/Solution.VC.db b/.vs/Project1C++/v17/Preview/Solution.VC.db new file mode 100644 index 0000000..c8b82c2 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/Solution.VC.db differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/10df26ce5496ffef/欧几里得.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/10df26ce5496ffef/欧几里得.ipch new file mode 100644 index 0000000..2e4f0f9 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/10df26ce5496ffef/欧几里得.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/1343e4f925747f6e/高精加.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/1343e4f925747f6e/高精加.ipch new file mode 100644 index 0000000..86cd542 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/1343e4f925747f6e/高精加.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/177fdd23cf95a145/优秀整数精.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/177fdd23cf95a145/优秀整数精.ipch new file mode 100644 index 0000000..581f614 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/177fdd23cf95a145/优秀整数精.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/193cdcad98a26c69/数独.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/193cdcad98a26c69/数独.ipch new file mode 100644 index 0000000..b84deb4 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/193cdcad98a26c69/数独.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/389aadf84ecdf460/矩阵取数记忆.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/389aadf84ecdf460/矩阵取数记忆.ipch new file mode 100644 index 0000000..b8d4830 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/389aadf84ecdf460/矩阵取数记忆.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/394b46a18863591/矩阵取数高精.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/394b46a18863591/矩阵取数高精.ipch new file mode 100644 index 0000000..7ad2a67 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/394b46a18863591/矩阵取数高精.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/53d70b8dcd760056/TEST.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/53d70b8dcd760056/TEST.ipch new file mode 100644 index 0000000..e16ccee Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/53d70b8dcd760056/TEST.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/54e0f1892041fad6/高精乘.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/54e0f1892041fad6/高精乘.ipch new file mode 100644 index 0000000..2aeca6e Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/54e0f1892041fad6/高精乘.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/5fe77a405e365197/1.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/5fe77a405e365197/1.ipch new file mode 100644 index 0000000..9e93888 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/5fe77a405e365197/1.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/61bedb2ea4b2f54e/优秀正整数.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/61bedb2ea4b2f54e/优秀正整数.ipch new file mode 100644 index 0000000..a7fa2bd Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/61bedb2ea4b2f54e/优秀正整数.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/67faa9a99a59134/矩阵取数.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/67faa9a99a59134/矩阵取数.ipch new file mode 100644 index 0000000..35c8978 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/67faa9a99a59134/矩阵取数.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/693826285f38dcc6/三个数的最大公因数.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/693826285f38dcc6/三个数的最大公因数.ipch new file mode 100644 index 0000000..77bb151 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/693826285f38dcc6/三个数的最大公因数.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/8b414ec0f23dcb06/TEST2.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/8b414ec0f23dcb06/TEST2.ipch new file mode 100644 index 0000000..ebcbd3f Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/8b414ec0f23dcb06/TEST2.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/98ab4d16adf22413/斐波那契数列.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/98ab4d16adf22413/斐波那契数列.ipch new file mode 100644 index 0000000..b2fccd1 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/98ab4d16adf22413/斐波那契数列.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/a3900adda37963f5/矩阵取数简.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/a3900adda37963f5/矩阵取数简.ipch new file mode 100644 index 0000000..24d0b2e Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/a3900adda37963f5/矩阵取数简.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/b9f2e20801b6f590/00000.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/b9f2e20801b6f590/00000.ipch new file mode 100644 index 0000000..b222599 Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/b9f2e20801b6f590/00000.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/c5650fc81fddf5ad/平方之和.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/c5650fc81fddf5ad/平方之和.ipch new file mode 100644 index 0000000..8bb9bac Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/c5650fc81fddf5ad/平方之和.ipch differ diff --git a/.vs/Project1C++/v17/Preview/ipch/AutoPCH/f65e338b369bd26b/MAIN.ipch b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/f65e338b369bd26b/MAIN.ipch new file mode 100644 index 0000000..e22395f Binary files /dev/null and b/.vs/Project1C++/v17/Preview/ipch/AutoPCH/f65e338b369bd26b/MAIN.ipch differ diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..cea4d3f --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "windows-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "gcc", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "windows-gcc-x64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..eb3ebee --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "externalConsole": true, + "cwd": "d:/project/Project1C++", + "program": "d:/project/Project1C++/build/Debug/outDebug", + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bb879da --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,59 @@ +{ + "C_Cpp_Runner.cCompilerPath": "gcc", + "C_Cpp_Runner.cppCompilerPath": "g++", + "C_Cpp_Runner.debuggerPath": "gdb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wcast-align", + "-Wconversion", + "-Wsign-conversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.msvcWarnings": [ + "/W4", + "/permissive-", + "/w14242", + "/w14287", + "/w14296", + "/w14311", + "/w14826", + "/w44062", + "/w44242", + "/w14905", + "/w14906", + "/w14263", + "/w44265", + "/w14928" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ], + "C_Cpp_Runner.useAddressSanitizer": false, + "C_Cpp_Runner.useUndefinedSanitizer": false, + "C_Cpp_Runner.useLeakSanitizer": false, + "C_Cpp_Runner.showCompilationTime": false, + "C_Cpp_Runner.useLinkTimeOptimization": false, + "C_Cpp_Runner.msvcSecureNoWarnings": false +} \ No newline at end of file diff --git a/00000.cpp b/00000.cpp new file mode 100644 index 0000000..d6bbd2a --- /dev/null +++ b/00000.cpp @@ -0,0 +1,41 @@ +//#include +//#include +//#include +//#include +// +//using namespace std; +// +//const int INF = -1e18; +// +//int main() { +// int n, m; +// cin >> n >> m; +// +// vector> matrix(n, vector(m)); +// for (int i = 0; i < n; ++i) { +// for (int j = 0; j < m; ++j) { +// cin >> matrix[i][j]; +// } +// } +// +// vector>> dp(m + 1, vector>(m, vector(m, INF))); +// dp[0][0][m - 1] = 0; +// +// for (int i = 0; i < m; ++i) { +// for (int l = 0; l < m; ++l) { +// for (int r = 0; r < m; ++r) { +// if (dp[i][l][r] == INF) continue; +// +// for (int k = 0; k < n; ++k) { +// if (l <= r) { +// dp[i + 1][l + 1][r] = max(dp[i + 1][l + 1][r], dp[i][l][r] + matrix[k][l] * (1LL << i)); +// dp[i + 1][l][r - 1] = max(dp[i + 1][l][r - 1], dp[i][l][r] + matrix[k][r] * (1LL << i)); +// } +// } +// } +// } +// } +// +// cout << dp[m][0][m - 1] << endl; +// return 0; +//} diff --git a/Project1C++.sln b/Project1C++.sln new file mode 100644 index 0000000..fc219bc --- /dev/null +++ b/Project1C++.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.34804.81 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project1C++", "Project1C++.vcxproj", "{653F23DB-4E65-4232-A488-E9A53268A0A6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Debug|x64.ActiveCfg = Debug|x64 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Debug|x64.Build.0 = Debug|x64 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Debug|x86.ActiveCfg = Debug|Win32 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Debug|x86.Build.0 = Debug|Win32 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Release|x64.ActiveCfg = Release|x64 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Release|x64.Build.0 = Release|x64 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Release|x86.ActiveCfg = Release|Win32 + {653F23DB-4E65-4232-A488-E9A53268A0A6}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {36478415-DBB6-48FC-899B-09EE85E41B65} + EndGlobalSection +EndGlobal diff --git a/Project1C++.vcxproj b/Project1C++.vcxproj new file mode 100644 index 0000000..19c17cd --- /dev/null +++ b/Project1C++.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {653f23db-4e65-4232-a488-e9a53268a0a6} + Project1C + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Project1C++.vcxproj.filters b/Project1C++.vcxproj.filters new file mode 100644 index 0000000..2f223ce --- /dev/null +++ b/Project1C++.vcxproj.filters @@ -0,0 +1,61 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + \ No newline at end of file diff --git a/Project1C++.vcxproj.user b/Project1C++.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Project1C++.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Project1C++/x64/Debug/00000.obj b/Project1C++/x64/Debug/00000.obj new file mode 100644 index 0000000..24c545e Binary files /dev/null and b/Project1C++/x64/Debug/00000.obj differ diff --git a/Project1C++/x64/Debug/1.obj b/Project1C++/x64/Debug/1.obj new file mode 100644 index 0000000..4ca9006 Binary files /dev/null and b/Project1C++/x64/Debug/1.obj differ diff --git a/Project1C++/x64/Debug/Project1C++.exe.recipe b/Project1C++/x64/Debug/Project1C++.exe.recipe new file mode 100644 index 0000000..7a583a1 --- /dev/null +++ b/Project1C++/x64/Debug/Project1C++.exe.recipe @@ -0,0 +1,11 @@ + + + + + D:\project\Project1C++\x64\Debug\Project1C++.exe + + + + + + \ No newline at end of file diff --git a/Project1C++/x64/Debug/Project1C++.ilk b/Project1C++/x64/Debug/Project1C++.ilk new file mode 100644 index 0000000..99f1385 Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.ilk differ diff --git a/Project1C++/x64/Debug/Project1C++.log b/Project1C++/x64/Debug/Project1C++.log new file mode 100644 index 0000000..8ed92fa --- /dev/null +++ b/Project1C++/x64/Debug/Project1C++.log @@ -0,0 +1,2 @@ + test2.cpp + Project1C++.vcxproj -> D:\project\Project1C++\x64\Debug\Project1C++.exe diff --git a/Project1C++/x64/Debug/Project1C++.tlog/CL.command.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/CL.command.1.tlog new file mode 100644 index 0000000..20f308f Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/CL.command.1.tlog differ diff --git a/Project1C++/x64/Debug/Project1C++.tlog/CL.read.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/CL.read.1.tlog new file mode 100644 index 0000000..b9c7f32 Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/CL.read.1.tlog differ diff --git a/Project1C++/x64/Debug/Project1C++.tlog/CL.write.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ed7ecbf Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/CL.write.1.tlog differ diff --git a/Project1C++/x64/Debug/Project1C++.tlog/Cl.items.tlog b/Project1C++/x64/Debug/Project1C++.tlog/Cl.items.tlog new file mode 100644 index 0000000..51711bc --- /dev/null +++ b/Project1C++/x64/Debug/Project1C++.tlog/Cl.items.tlog @@ -0,0 +1,14 @@ +D:\project\Project1C++\平方之和.cpp;D:\project\Project1C++\Project1C++\x64\Debug\平方之和.obj +D:\project\Project1C++\test2.cpp;D:\project\Project1C++\Project1C++\x64\Debug\test2.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 +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 diff --git a/Project1C++/x64/Debug/Project1C++.tlog/Project1C++.lastbuildstate b/Project1C++/x64/Debug/Project1C++.tlog/Project1C++.lastbuildstate new file mode 100644 index 0000000..83ac0b1 --- /dev/null +++ b/Project1C++/x64/Debug/Project1C++.tlog/Project1C++.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.40.33721:TargetPlatformVersion=10.0.22621.0: +Debug|x64|D:\project\Project1C++\| diff --git a/Project1C++/x64/Debug/Project1C++.tlog/link.command.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/link.command.1.tlog new file mode 100644 index 0000000..560a360 Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/link.command.1.tlog differ diff --git a/Project1C++/x64/Debug/Project1C++.tlog/link.read.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/link.read.1.tlog new file mode 100644 index 0000000..d8dc6f5 Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/link.read.1.tlog differ diff --git a/Project1C++/x64/Debug/Project1C++.tlog/link.secondary.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/link.secondary.1.tlog new file mode 100644 index 0000000..6ecaf18 --- /dev/null +++ b/Project1C++/x64/Debug/Project1C++.tlog/link.secondary.1.tlog @@ -0,0 +1,2 @@ +^D:\PROJECT\PROJECT1C++\PROJECT1C++\X64\DEBUG\TEST2.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 diff --git a/Project1C++/x64/Debug/Project1C++.tlog/link.write.1.tlog b/Project1C++/x64/Debug/Project1C++.tlog/link.write.1.tlog new file mode 100644 index 0000000..47e8ad4 Binary files /dev/null and b/Project1C++/x64/Debug/Project1C++.tlog/link.write.1.tlog differ diff --git a/Project1C++/x64/Debug/TEST.obj b/Project1C++/x64/Debug/TEST.obj new file mode 100644 index 0000000..77b3ba6 Binary files /dev/null and b/Project1C++/x64/Debug/TEST.obj differ diff --git a/Project1C++/x64/Debug/main.obj b/Project1C++/x64/Debug/main.obj new file mode 100644 index 0000000..71f72f2 Binary files /dev/null and b/Project1C++/x64/Debug/main.obj differ diff --git a/Project1C++/x64/Debug/main.obj.enc b/Project1C++/x64/Debug/main.obj.enc new file mode 100644 index 0000000..18b4019 Binary files /dev/null and b/Project1C++/x64/Debug/main.obj.enc differ diff --git a/Project1C++/x64/Debug/test.obj.enc b/Project1C++/x64/Debug/test.obj.enc new file mode 100644 index 0000000..b2be26b Binary files /dev/null and b/Project1C++/x64/Debug/test.obj.enc differ diff --git a/Project1C++/x64/Debug/test2.obj b/Project1C++/x64/Debug/test2.obj new file mode 100644 index 0000000..6275219 Binary files /dev/null and b/Project1C++/x64/Debug/test2.obj differ diff --git a/Project1C++/x64/Debug/vc143.idb b/Project1C++/x64/Debug/vc143.idb new file mode 100644 index 0000000..ddf169b Binary files /dev/null and b/Project1C++/x64/Debug/vc143.idb differ diff --git a/Project1C++/x64/Debug/vc143.pdb b/Project1C++/x64/Debug/vc143.pdb new file mode 100644 index 0000000..70d8363 Binary files /dev/null and b/Project1C++/x64/Debug/vc143.pdb differ diff --git a/Project1C++/x64/Debug/三个数的最大公因数.obj b/Project1C++/x64/Debug/三个数的最大公因数.obj new file mode 100644 index 0000000..57672f9 Binary files /dev/null and b/Project1C++/x64/Debug/三个数的最大公因数.obj differ diff --git a/Project1C++/x64/Debug/优秀整数精.obj b/Project1C++/x64/Debug/优秀整数精.obj new file mode 100644 index 0000000..c1f5eb1 Binary files /dev/null and b/Project1C++/x64/Debug/优秀整数精.obj differ diff --git a/Project1C++/x64/Debug/优秀正整数.obj b/Project1C++/x64/Debug/优秀正整数.obj new file mode 100644 index 0000000..469a653 Binary files /dev/null and b/Project1C++/x64/Debug/优秀正整数.obj differ diff --git a/Project1C++/x64/Debug/优秀正整数质数筛.obj b/Project1C++/x64/Debug/优秀正整数质数筛.obj new file mode 100644 index 0000000..613fde6 Binary files /dev/null and b/Project1C++/x64/Debug/优秀正整数质数筛.obj differ diff --git a/Project1C++/x64/Debug/平方之和.obj b/Project1C++/x64/Debug/平方之和.obj new file mode 100644 index 0000000..9935c06 Binary files /dev/null and b/Project1C++/x64/Debug/平方之和.obj differ diff --git a/Project1C++/x64/Debug/数独.obj b/Project1C++/x64/Debug/数独.obj new file mode 100644 index 0000000..8c92aa3 Binary files /dev/null and b/Project1C++/x64/Debug/数独.obj differ diff --git a/Project1C++/x64/Debug/斐波那契数列.obj b/Project1C++/x64/Debug/斐波那契数列.obj new file mode 100644 index 0000000..dc53c76 Binary files /dev/null and b/Project1C++/x64/Debug/斐波那契数列.obj differ diff --git a/Project1C++/x64/Debug/欧几里得.obj b/Project1C++/x64/Debug/欧几里得.obj new file mode 100644 index 0000000..809ae5b Binary files /dev/null and b/Project1C++/x64/Debug/欧几里得.obj differ diff --git a/Project1C++/x64/Debug/矩阵取数.obj b/Project1C++/x64/Debug/矩阵取数.obj new file mode 100644 index 0000000..dfde8ab Binary files /dev/null and b/Project1C++/x64/Debug/矩阵取数.obj differ diff --git a/Project1C++/x64/Debug/矩阵取数简.obj b/Project1C++/x64/Debug/矩阵取数简.obj new file mode 100644 index 0000000..40d5475 Binary files /dev/null and b/Project1C++/x64/Debug/矩阵取数简.obj differ diff --git a/Project1C++/x64/Debug/矩阵取数记忆.obj b/Project1C++/x64/Debug/矩阵取数记忆.obj new file mode 100644 index 0000000..723959d Binary files /dev/null and b/Project1C++/x64/Debug/矩阵取数记忆.obj differ diff --git a/Project1C++/x64/Debug/矩阵取数高精.obj b/Project1C++/x64/Debug/矩阵取数高精.obj new file mode 100644 index 0000000..9734fcb Binary files /dev/null and b/Project1C++/x64/Debug/矩阵取数高精.obj differ diff --git a/Project1C++/x64/Debug/高精乘.obj b/Project1C++/x64/Debug/高精乘.obj new file mode 100644 index 0000000..8038d7e Binary files /dev/null and b/Project1C++/x64/Debug/高精乘.obj differ diff --git a/Project1C++/x64/Debug/高精加.obj b/Project1C++/x64/Debug/高精加.obj new file mode 100644 index 0000000..366a1b3 Binary files /dev/null and b/Project1C++/x64/Debug/高精加.obj differ diff --git a/test2.cpp b/test2.cpp new file mode 100644 index 0000000..af5fc6b --- /dev/null +++ b/test2.cpp @@ -0,0 +1,33 @@ +#include +#include +using namespace std; + +int main() { + int n; + cin >> n; + int shuzu[2000] = {0,0}; + for (int i = 2; i <=n; i++) + { + shuzu[1]=0; + } + for (int i = 2 ;i < n-1; i++) + { + int num = i+1; + int b = i; + while (shuzu[num]==0) + { + num++; + } + for (int j = num; j <=n; j++) { + if (j%b==0) + { + shuzu[j] = 0; + } + } + } + for (int i = 1; i < n; i++) + { + cout << i << " " << shuzu[i] << endl; + } + return 0; +} diff --git a/x64/Debug/Project1C++.exe b/x64/Debug/Project1C++.exe new file mode 100644 index 0000000..158fea8 Binary files /dev/null and b/x64/Debug/Project1C++.exe differ diff --git a/x64/Debug/Project1C++.pdb b/x64/Debug/Project1C++.pdb new file mode 100644 index 0000000..75870b3 Binary files /dev/null and b/x64/Debug/Project1C++.pdb differ diff --git a/三个数的最大公因数.cpp b/三个数的最大公因数.cpp new file mode 100644 index 0000000..cdc5a95 --- /dev/null +++ b/三个数的最大公因数.cpp @@ -0,0 +1,21 @@ +//#include +//using namespace std; +//int yinshu(int a,int b) { +// int num_max, num_min; +// num_max = max(a, b); +// num_min = min(a, b); +// while (num_max % num_min != 0){ +// int tmp = num_max; +// num_max = num_min; +// num_min = tmp % num_min; +// } +// return num_min; +//} +//int main() { +// int a, b, c; +// int num_max, num_min; +// cin >> a >> b >> c; +// int d = yinshu(a,b); +// cout << yinshu(c,d); +// return 0; +//} \ No newline at end of file diff --git a/优秀整数精.cpp b/优秀整数精.cpp new file mode 100644 index 0000000..9660268 --- /dev/null +++ b/优秀整数精.cpp @@ -0,0 +1,63 @@ +//#include +//#include +//#include +//using namespace std; +// +//const long long MOD = 998244353; +//const int MAX_DIGIT_SUM = 162; // λͣ999999999999 λΪ 162 +// +//// һλ֮ +//long long digitSum(long long a) { +// long long sum = 0; +// while (a != 0) { +// sum += a % 10; +// a /= 10; +// } +// return sum; +//} +// +//// ʹðɫɸԤ +//vector sieve(int n) { +// vector isPrime(n + 1, true); +// isPrime[0] = isPrime[1] = false; +// for (int i = 2; i * i <= n; ++i) { +// if (isPrime[i]) { +// for (int j = i * i; j <= n; j += i) { +// isPrime[j] = false; +// } +// } +// } +// return isPrime; +//} +// +//int main() { +// long long L, R; +// cin >> L >> R; +// +// // Ԥλ [0, MAX_DIGIT_SUM] Χڵ +// vector primeTable = sieve(MAX_DIGIT_SUM); +// +// long long product = 1; +// bool found = false; +// +// // ʽת +// long long start = static_cast(ceil(sqrt(L))); +// long long end = static_cast(floor(sqrt(R))); +// +// for (long long i = start; i <= end; i++) { +// long long square = i * i; +// if (square >= L && square <= R && primeTable[digitSum(square)]) { +// product = (product * square) % MOD; +// found = true; +// } +// } +// +// if (found) { +// cout << product << endl; +// } +// else { +// cout << 0 << endl; +// } +// +// return 0; +//} diff --git a/优秀正整数.cpp b/优秀正整数.cpp new file mode 100644 index 0000000..132c1be --- /dev/null +++ b/优秀正整数.cpp @@ -0,0 +1,57 @@ +//#include +//#include +//#include +//using namespace std; +// +//const long long MOD = 998244353; +// +//// һλ֮ +//long long digitSum(long long a) { +// long long sum = 0; +// while (a != 0) { +// sum += a % 10; +// a /= 10; +// } +// return sum; +//} +// +//// жһǷΪ +//bool isPrime(long long b) { +// if (b <= 1) return false; +// if (b == 2) return true; +// if (b % 2 == 0) return false; +// for (long long i = 3; i * i <= b; i ++) { +// if (b % i == 0) { +// return false; +// } +// } +// return true; +//} +// +//int main() { +// int64_t L, R; +// cin >> L >> R; +// long long product = 1; +// bool found = false; +// +// long long start = ceil(sqrt(L)); +// long long end = floor(sqrt(R)); +// +// for (long long i = start; i <= end; i++) { +// long long square = i * i; +// if (square >= L && square <= R && isPrime(digitSum(square))) { +// product = (product * square) % MOD; +// +// found = true; +// } +// } +// +// if (found) { +// cout << product << endl; +// } +// else { +// cout << 0 << endl; +// } +// +// return 0; +//} diff --git a/优秀正整数质数筛.cpp b/优秀正整数质数筛.cpp new file mode 100644 index 0000000..e69de29 diff --git a/平方之和.cpp b/平方之和.cpp new file mode 100644 index 0000000..b7710f7 --- /dev/null +++ b/平方之和.cpp @@ -0,0 +1,31 @@ +//#include +//using namespace std; +//int main() { +// int count = 0; +// int n; +// cin >> n; +// for (int i = 0; i < n; i++) +// { +// int N,is_zhe=0; +// cin >> N; +// for (int j = 1; j < sqrt(N); j++) +// { +// count++; +// cout << count< +//#include +//#include +//using namespace std; +// +//bool isValidMove(vector>& board, vector>& rows, vector>& cols, vector>& subgrids, int row, int col, int num) { +// return !rows[row][num] && !cols[col][num] && !subgrids[row / 3 * 3 + col / 3][num]; +//} +// +//bool solveSudoku(vector>& board) { +// vector> rows(9, vector(10, false)); // ִ +// vector> cols(9, vector(10, false)); // ִ +// vector> subgrids(9, vector(10, false)); // Źִ +// +// // ݳʼ̳ʼ +// for (int i = 0; i < 9; ++i) { +// for (int j = 0; j < 9; ++j) { +// int num = board[i][j]; +// if (num != 0) { +// rows[i][num] = true; +// cols[j][num] = true; +// subgrids[i / 3 * 3 + j / 3][num] = true; +// } +// } +// } +// +// // ʹûݷ +// function backtrack = [&](int row, int col) -> bool { +// if (row == 9) { +// return true; // еԪ +// } +// +// if (board[row][col] == 0) { +// for (int num = 1; num <= 9; ++num) { +// if (isValidMove(board, rows, cols, subgrids, row, col, num)) { +// board[row][col] = num; +// rows[row][num] = true; +// cols[col][num] = true; +// subgrids[row / 3 * 3 + col / 3][num] = true; +// +// if (col == 8) { +// if (backtrack(row + 1, 0)) { +// return true; +// } +// } +// else { +// if (backtrack(row, col + 1)) { +// return true; +// } +// } +// +// board[row][col] = 0; +// rows[row][num] = false; +// cols[col][num] = false; +// subgrids[row / 3 * 3 + col / 3][num] = false; +// } +// } +// } +// else { +// if (col == 8) { +// return backtrack(row + 1, 0); +// } +// else { +// return backtrack(row, col + 1); +// } +// } +// +// return false; // ûҵЧƶ +// }; +// +// return backtrack(0, 0); +//} +// +//int main() { +// vector> sudokuBoard(9, vector(9, 0)); +// +// for (int i = 0; i < 9; ++i) { +// for (int j = 0; j < 9; ++j) { +// cin >> sudokuBoard[i][j]; +// } +// } +// +// if (solveSudoku(sudokuBoard)) { +// for (const auto& row : sudokuBoard) { +// for (int num : row) { +// cout << num << " "; +// } +// cout << endl; +// } +// } +// +// return 0; +//} \ No newline at end of file diff --git a/斐波那契数列.cpp b/斐波那契数列.cpp new file mode 100644 index 0000000..c47782f --- /dev/null +++ b/斐波那契数列.cpp @@ -0,0 +1,21 @@ +//#include +//#include +// +//using namespace std; +// +//int main() { +// int sum = 0; +// for (int i = 0; i <=100; i++) +// { +// for (int j = 0; j <=100-i; j++) +// { +// /* cout << (100 - i - j) / 3 + i * 5 + j * 3< +// +//using namespace std; +// +//int main() { +// int M, N; +// int m, n; +// cin >> m >> n; +// M = max(m, n); +// N = min(m, n); +// int sum = M * N; +// while (M % N != 0) { +// int tmp = N; +// N = M % N; +// M = tmp; +// } +// cout << N< +//#include +//#include +// +//using namespace std; +// +//int n, m; +//long long sum; +// +//// 󣨵ã +//void out(const vector>& a) { +// int n = a.size(); +// if (n == 0) return; +// int m = a[0].size(); +// for (int i = 0; i < n; i++) { +// for (int j = 0; j < m; j++) { +// cout << a[i][j] << " "; +// } +// cout << endl; +// } +//} +// +//// ݹ麯ѡͷβֵ +//long long findMaxRecursive(const vector& b, int left, int right, int power) { +// if (left > right) { +// return 0; +// } +// if (left == right) { +// return b[left] * (1LL << power); +// } +// long long maxHead = findMaxRecursive(b, left + 1, right, power + 1) + b[left] * (1LL << power); +// long long maxTail = findMaxRecursive(b, left, right - 1, power + 1) + b[right] * (1LL << power); +// return max(maxHead, maxTail); +//} +// +//long long solve(const vector>& matrix) { +// long long totalMaxScore = 0; +// for (const auto& row : matrix) { +// totalMaxScore += findMaxRecursive(row, 0, row.size() - 1, 1); +// } +// return totalMaxScore; +//} +// +//int main() { +// cin >> n >> m; +// +// vector> a(n, vector(m)); +// +// // ȡ +// for (int i = 0; i < n; i++) { +// for (int j = 0; j < m; j++) { +// cin >> a[i][j]; +// } +// } +// +// cout << solve(a) << endl; +// +// return 0; +//} diff --git a/矩阵取数记忆.cpp b/矩阵取数记忆.cpp new file mode 100644 index 0000000..1e7e343 --- /dev/null +++ b/矩阵取数记忆.cpp @@ -0,0 +1,61 @@ +//#include +//#include +//#include +// +//using namespace std; +// +//int n, m; +//vector> dp; // 仯 +// +//// 2^power +//long long powerOfTwo(int power) { +// long long result = 1; +// for (int i = 0; i < power; ++i) { +// result *= 2; +// } +// return result; +//} +// +//// ݹ麯ѡͷβֵ +//long long findMaxRecursive(const vector& b, int left, int right, int power) { +// if (left > right) { +// return 0; +// } +// if (left == right) { +// return b[left] * powerOfTwo(power); +// } +// if (dp[left][right] != -1) { // Ѿֱӷؽ +// return dp[left][right]; +// } +// long long maxHead = findMaxRecursive(b, left + 1, right, power + 1) + b[left] * powerOfTwo(power); +// long long maxTail = findMaxRecursive(b, left, right - 1, power + 1) + b[right] * powerOfTwo(power); +// dp[left][right] = max(maxHead, maxTail); // ¼ +// return dp[left][right]; +//} +// +//long long solve(const vector>& matrix) { +// long long totalMaxScore = 0; +// for (const auto& row : matrix) { +// int rowSize = row.size(); +// // ̬ dp ĴСʼ +// dp = vector>(rowSize, vector(rowSize, -1)); +// totalMaxScore += findMaxRecursive(row, 0, rowSize - 1, 1); +// } +// return totalMaxScore; +//} +// +//int main() { +// cin >> n >> m; +// vector> a(n, vector(m)); +// +// // ȡ +// for (int i = 0; i < n; i++) { +// for (int j = 0; j < m; j++) { +// cin >> a[i][j]; +// } +// } +// +// cout << solve(a) << endl; +// +// return 0; +//} diff --git a/矩阵取数高精.cpp b/矩阵取数高精.cpp new file mode 100644 index 0000000..33d90b5 --- /dev/null +++ b/矩阵取数高精.cpp @@ -0,0 +1,141 @@ +//#include +//#include +//#include +//#include +// +//using namespace std; +// +//vector> dp; // 仯 +// +// +//string highPrecisionAdd(const string& s1, const string& s2) { +// int la = s1.length(); +// int lb = s2.length(); +// int lc = max(la, lb); +// vector a(lc + 1, 0); // +1 to handle carry over +// vector b(lc + 1, 0); +// vector c(lc + 1, 0); +// +// for (int i = 0; i < la; i++) { +// a[i] = s1[la - i - 1] - '0'; // reverse order +// } +// for (int i = 0; i < lb; i++) { +// b[i] = s2[lb - i - 1] - '0'; // reverse order +// } +// +// for (int i = 0; i < lc; i++) { +// c[i] += a[i] + b[i]; +// if (c[i] >= 10) { +// c[i + 1] += c[i] / 10; +// c[i] %= 10; +// } +// } +// +// // handle last carry +// if (c[lc] > 0) lc++; +// +// string result; +// bool leadingZero = true; +// for (int i = lc - 1; i >= 0; i--) { +// if (leadingZero && c[i] == 0) continue; +// leadingZero = false; +// result.push_back(c[i] + '0'); +// } +// +// return result.empty() ? "0" : result; +//} +// +//string highPrecisionMultiply(const string& s1, const string& s2) { +// int la = s1.length(); +// int lb = s2.length(); +// vector a(la, 0); +// vector b(lb, 0); +// vector c(la + lb, 0); +// +// for (int i = 0; i < la; i++) { +// a[la - i - 1] = s1[i] - '0'; // Reverse order +// } +// for (int i = 0; i < lb; i++) { +// b[lb - i - 1] = s2[i] - '0'; // Reverse order +// } +// +// for (int i = 0; i < la; i++) { +// for (int j = 0; j < lb; j++) { +// c[i + j] += a[i] * b[j]; +// } +// } +// +// // Handle carry +// for (int i = 0; i < la + lb; i++) { +// if (c[i] >= 10) { +// c[i + 1] += c[i] / 10; +// c[i] %= 10; +// } +// } +// +// // Remove leading zeros +// int lc = la + lb; +// while (lc > 1 && c[lc - 1] == 0) lc--; +// +// string result; +// for (int i = lc - 1; i >= 0; i--) { +// result.push_back(c[i] + '0'); +// } +// +// return result.empty() ? "0" : result; +//} +// +// +//// 2powerηĸ߾Ⱥ +//string powerOfTwo(int power) { +// string result = "1"; +// string two = "2"; +// for (int i = 0; i < power; ++i) { +// result = highPrecisionMultiply(result, two); +// } +// return result; +//} +// +//string findMaxRecursive(const vector& b, int left, int right, int power) { +// if (left > right) { +// return "0"; +// } +// if (left == right) { +// return highPrecisionMultiply(b[left], powerOfTwo(power)); +// } +// if (dp[left][right] != "-1") { +// return dp[left][right]; +// } +// +// string maxHead = highPrecisionAdd(findMaxRecursive(b, left + 1, right, power + 1), highPrecisionMultiply(b[left], powerOfTwo(power))); +// string maxTail = highPrecisionAdd(findMaxRecursive(b, left, right - 1, power + 1), highPrecisionMultiply(b[right], powerOfTwo(power))); +// dp[left][right] = (maxHead > maxTail) ? maxHead : maxTail; +// cout << "" << dp[left][right] << endl; +// return dp[left][right]; +//} +// +//string solve(const vector>& matrix) { +// string totalMaxScore = "0"; +// for (const auto& row : matrix) { +// int rowSize = row.size(); +// dp = vector>(rowSize, vector(rowSize, "-1")); +// totalMaxScore = highPrecisionAdd(totalMaxScore, findMaxRecursive(row, 0, rowSize - 1, 1)); +// } +// return totalMaxScore; +//} +// +//int main() { +// int n, m; +// cin >> n >> m; +// vector> a(n, vector(m)); +// +// for (int i = 0; i < n; i++) { +// for (int j = 0; j < m; j++) { +// cin >> a[i][j]; +// } +// } +// +// cout << solve(a) << endl; +// +// return 0; +//} diff --git a/高精乘.cpp b/高精乘.cpp new file mode 100644 index 0000000..a9a3a64 --- /dev/null +++ b/高精乘.cpp @@ -0,0 +1,50 @@ +//#include +//#include +//#include +// +//using namespace std; +// +//string highPrecisionMultiply(const string& s1, const string& s2) { +// int la = s1.length(); +// int lb = s2.length(); +// vector a(la, 0); +// vector b(lb, 0); +// vector c(la + lb, 0); +// +// for (int i = 0; i < la; i++) { +// a[la - i - 1] = s1[i] - '0'; // Reverse order +// } +// for (int i = 0; i < lb; i++) { +// b[lb - i - 1] = s2[i] - '0'; // Reverse order +// } +// +// for (int i = 0; i < la; i++) { +// for (int j = 0; j < lb; j++) { +// c[i + j] += a[i] * b[j]; +// } +// } +// +// // Handle carry +// for (int i = 0; i < la + lb; i++) { +// if (c[i] >= 10) { +// c[i + 1] += c[i] / 10; +// c[i] %= 10; +// } +// } +// +// // Remove leading zeros +// int lc = la + lb; +// while (lc > 1 && c[lc - 1] == 0) lc--; +// +// string result; +// for (int i = lc - 1; i >= 0; i--) { +// result.push_back(c[i] + '0'); +// } +// +// return result.empty() ? "0" : result; +//} +// +//int main() { +// cout << highPrecisionMultiply("50", "50") << endl; // Expected output: 2500 +// return 0; +//} diff --git a/高精加.cpp b/高精加.cpp new file mode 100644 index 0000000..9c5b064 --- /dev/null +++ b/高精加.cpp @@ -0,0 +1,47 @@ +//#include +//#include +//#include +// +//using namespace std; +// +//string highPrecisionAdd(const string& s1, const string& s2) { +// int la = s1.length(); +// int lb = s2.length(); +// int lc = max(la, lb); +// vector a(lc + 1, 0); // +1 to handle carry over +// vector b(lc + 1, 0); +// vector c(lc + 1, 0); +// +// for (int i = 0; i < la; i++) { +// a[i] = s1[la - i - 1] - '0'; // reverse order +// } +// for (int i = 0; i < lb; i++) { +// b[i] = s2[lb - i - 1] - '0'; // reverse order +// } +// +// for (int i = 0; i < lc; i++) { +// c[i] += a[i] + b[i]; +// if (c[i] >= 10) { +// c[i + 1] += c[i] / 10; +// c[i] %= 10; +// } +// } +// +// // handle last carry +// if (c[lc] > 0) lc++; +// +// string result; +// bool leadingZero = true; +// for (int i = lc - 1; i >= 0; i--) { +// if (leadingZero && c[i] == 0) continue; +// leadingZero = false; +// result.push_back(c[i] + '0'); +// } +// +// return result.empty() ? "0" : result; +//} +// +//int main() { +// cout << highPrecisionAdd("5555", "50") << endl; // Expected output: 100 +// return 0; +//}