diff --git a/未命名1.cpp b/未命名1.cpp new file mode 100644 index 0000000..cf5d0a1 --- /dev/null +++ b/未命名1.cpp @@ -0,0 +1,20 @@ +#include +using namespace std; +int main() { + int a; + double s;i + f(a<=10);{ + s=0.8*a+0.2; + cout<>a; + i + return 0; +} diff --git a/未命名3.cpp b/未命名3.cpp new file mode 100644 index 0000000..e36fef8 --- /dev/null +++ b/未命名3.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; +int main() { + int a; + cin>>a; + if (a%4==0&a&100!=0||a%400==0){ + if{a=} + } + return 0; +} + diff --git a/等差数列.cpp b/等差数列.cpp new file mode 100644 index 0000000..10a9f3d --- /dev/null +++ b/等差数列.cpp @@ -0,0 +1,8 @@ +#include +using namespace std; +int main() { + int a,b,c; + cin>>a>>b>>c; + cout<<(b-a)*(c-1)+a; + return 0; +} diff --git a/等差数列.exe b/等差数列.exe new file mode 100644 index 0000000..b64dd5a Binary files /dev/null and b/等差数列.exe differ diff --git a/计算徽章数量.cpp b/计算徽章数量.cpp new file mode 100644 index 0000000..a3cc051 --- /dev/null +++ b/计算徽章数量.cpp @@ -0,0 +1,8 @@ +#include +using namespace std; +int main() { + int a, b; + cin>>a>>b; + cout<<(a*10+b)/21; + return 0; +} diff --git a/计算徽章数量.exe b/计算徽章数量.exe new file mode 100644 index 0000000..04a0852 Binary files /dev/null and b/计算徽章数量.exe differ diff --git a/闰年判断.cpp b/闰年判断.cpp new file mode 100644 index 0000000..d3d1d69 --- /dev/null +++ b/闰年判断.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; +int main() { + int a; + cin>>a; + if (a%4==0&a&100!=0||a%400==0){ + cout<<"ꡣ";} + else {cout<< "";} + return 0; +} + diff --git a/闰年判断.exe b/闰年判断.exe new file mode 100644 index 0000000..87abdad Binary files /dev/null and b/闰年判断.exe differ