diff --git a/.vscode/settings.json b/.vscode/settings.json index d1afe75..01faa21 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,7 +21,10 @@ "typeinfo": "cpp", "deque": "cpp", "string": "cpp", - "vector": "cpp" + "vector": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "string_view": "cpp" }, "terminal.integrated.automationShell.windows": "cmd.exe", "files.encoding": "gb18030", diff --git a/1658_alllike/Readme.md b/1658_alllike/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/1658_alllike/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/1658_alllike/doc/Readme.md b/1658_alllike/doc/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/1658_alllike/doc/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/1658_alllike/main.cpp b/1658_alllike/main.cpp new file mode 100644 index 0000000..988cea6 --- /dev/null +++ b/1658_alllike/main.cpp @@ -0,0 +1,7 @@ +#include +#include +using namespace std; +int main() +{ + +} diff --git a/1658_alllike/main.exe b/1658_alllike/main.exe new file mode 100644 index 0000000..fc4df42 Binary files /dev/null and b/1658_alllike/main.exe differ diff --git a/1658_alllike/test/in.txt b/1658_alllike/test/in.txt new file mode 100644 index 0000000..e69de29 diff --git a/1658_alllike/test/in2.txt b/1658_alllike/test/in2.txt new file mode 100644 index 0000000..e69de29 diff --git a/1658_alllike/test/in3.txt b/1658_alllike/test/in3.txt new file mode 100644 index 0000000..e69de29 diff --git a/1658_alllike/test/out.txt b/1658_alllike/test/out.txt new file mode 100644 index 0000000..35a20e6 --- /dev/null +++ b/1658_alllike/test/out.txt @@ -0,0 +1,7 @@ +## z:\Chao\src\Template\test\in.txt +2020/03/14 周六 11:41:28.68 +Hello Easy C++ project! + +----------------------------------------------- +Process exited after 200 ms with return value 0 + diff --git a/3053_longdui/main copy.exe b/3053_longdui/main copy.exe new file mode 100644 index 0000000..205f6d3 Binary files /dev/null and b/3053_longdui/main copy.exe differ diff --git a/3053_longdui/new.cpp b/3053_longdui/new.cpp new file mode 100644 index 0000000..1256343 --- /dev/null +++ b/3053_longdui/new.cpp @@ -0,0 +1,23 @@ +#include +#include +using namespace std; +set cun; +int main() +{ + int n,now=1; + for(int i=0;now<=1000000000;i++){ + now+=i; + cun.insert(now); + } + cin>>n; + for(int i=1;i<=n;i++){ + int u; + cin>>u; + if(cun.find(u)==cun.end()){ + cout<<"0"< +#include +using namespace std; +vector su; +bool pan(int n) +{ + if(n==1){ + return 1; + } + for (int i = 0; i < su.size(); i++) { + if (n % su[i] == 0 || su[i] * su[i] > n) { + return 0; + } + } + su.push_back(n); + return 1; +} +int main() +{ + int begn, ends; + cin >> begn >> ends; + int bgnum=1,ednum=1; + /*if(pan(begn)==1){ + bgnum--; + }*/ + for (int i = 2; i * i <= ends; i++) { + if (pan(i) == 1) { + if (i * i <= begn) { + bgnum+=begn/i+i-2; + } + ednum+=ends/i+i-2; + } + } + + cout<