delete pics to save space
This commit is contained in:
7
history_source/ccf 入门篇/U2/2.1.1.cpp
Normal file
7
history_source/ccf 入门篇/U2/2.1.1.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"ant\n_3cq\nmy\nfriend\nMycar\nmy_car\nall\na_abc\ndaf_32\nmaxn";
|
||||
while(true);
|
||||
}
|
16
history_source/ccf 入门篇/U2/2.1.2.cpp
Normal file
16
history_source/ccf 入门篇/U2/2.1.2.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a=998;
|
||||
float b=3.1415926535897;
|
||||
char c='a';
|
||||
double d=1.0/3;
|
||||
long double e=8.0/9;
|
||||
long f=999999999999999999999;
|
||||
cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl<<f<<endl;
|
||||
|
||||
while(true);
|
||||
|
||||
return 0;
|
||||
}
|
8
history_source/ccf 入门篇/U2/2.1.3.cpp
Normal file
8
history_source/ccf 入门篇/U2/2.1.3.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
char a='b';
|
||||
cout<<a;
|
||||
while(true);
|
||||
}
|
7
history_source/ccf 入门篇/U2/2.2.1.cpp
Normal file
7
history_source/ccf 入门篇/U2/2.2.1.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"B,C";
|
||||
while(true);
|
||||
}
|
11
history_source/ccf 入门篇/U2/2.2.2.cpp
Normal file
11
history_source/ccf 入门篇/U2/2.2.2.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"y=m*x+b"<<endl;
|
||||
cout<<"m=(a+b+c)/(e*f)"<<endl;
|
||||
cout<<"a=sqrt((x-3*y)*z)"<<endl;
|
||||
cout<<"a=(2*x-y)/(x+pow(y,2))"<<endl;
|
||||
cout<<"m=(x-y*z)/(2/c)";
|
||||
while(true);
|
||||
}
|
7
history_source/ccf 入门篇/U2/2.2.3.cpp
Normal file
7
history_source/ccf 入门篇/U2/2.2.3.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"C,E,F";
|
||||
while(true);
|
||||
}
|
7
history_source/ccf 入门篇/U2/2.2.4.cpp
Normal file
7
history_source/ccf 入门篇/U2/2.2.4.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"11\n9\n10\n9\n10\n10\n50\n21";
|
||||
while(true);
|
||||
}
|
8
history_source/ccf 入门篇/U2/2.2.5.cpp
Normal file
8
history_source/ccf 入门篇/U2/2.2.5.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"4 3 4\n4 4 3"<<endl<<endl<<"==========="<<endl;
|
||||
cout<<"2 1";
|
||||
while(true);
|
||||
}
|
10
history_source/ccf 入门篇/U2/2.2.6.cpp
Normal file
10
history_source/ccf 入门篇/U2/2.2.6.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"ceil(3.14)="<<ceil(3.14)<<" floor(3.14)="<<floor(3.14)<<endl;
|
||||
cout<<"4^3.0="<<pow(4,3.0)<<endl;
|
||||
cout<<"sqrt(9)="<<sqrt(9)<<endl;
|
||||
while(true);
|
||||
}
|
9
history_source/ccf 入门篇/U2/2.2.7.cpp
Normal file
9
history_source/ccf 入门篇/U2/2.2.7.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int m=540/(120+150);
|
||||
cout<<"<EFBFBD><EFBFBD><EFBFBD>꼶<EFBFBD>ֵ<EFBFBD>"<<m*120<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
cout<<"<EFBFBD><EFBFBD><EFBFBD>꼶<EFBFBD>ֵ<EFBFBD>"<<m*150<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
while(true);
|
||||
}
|
9
history_source/ccf 入门篇/U2/2.2.8.cpp
Normal file
9
history_source/ccf 入门篇/U2/2.2.8.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a,b;
|
||||
cin>>a>>b;
|
||||
cout<<a<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<b<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<a%b;
|
||||
while(true);
|
||||
}
|
7
history_source/ccf 入门篇/U2/2.3.1.cpp
Normal file
7
history_source/ccf 入门篇/U2/2.3.1.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"3 3\n3 8\n11 8\nc=1\nc=1.375\n";
|
||||
while(true);
|
||||
}
|
21
history_source/ccf 入门篇/U2/2.3.2.cpp
Normal file
21
history_source/ccf 入门篇/U2/2.3.2.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<iostream>
|
||||
#include<string>
|
||||
#include<sstream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
char a;
|
||||
string x;
|
||||
stringstream b;
|
||||
b.flush();
|
||||
cin>>x;
|
||||
for(int i=0;i<x.size();i++){
|
||||
a=x[i];
|
||||
a=219-a;
|
||||
b<<a;
|
||||
}
|
||||
x="";
|
||||
b>>x;
|
||||
cout<<x<<endl;
|
||||
while(1==1);
|
||||
}
|
21
history_source/ccf 入门篇/U2/2.3.3.cpp
Normal file
21
history_source/ccf 入门篇/U2/2.3.3.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<iostream>
|
||||
#include<string>
|
||||
#include<sstream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
char a;
|
||||
string x;
|
||||
stringstream b;
|
||||
b.flush();
|
||||
cin>>x;
|
||||
for(int i=0;i<x.size();i++){
|
||||
a=x[i];
|
||||
a=97+(a-97+17)%24;
|
||||
b<<a;
|
||||
}
|
||||
x="";
|
||||
b>>x;
|
||||
cout<<x<<endl;
|
||||
while(1==1);
|
||||
}
|
10
history_source/ccf 入门篇/U2/2.4.1.cpp
Normal file
10
history_source/ccf 入门篇/U2/2.4.1.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
float a;
|
||||
while(true){
|
||||
cin>>a;
|
||||
cout<<a<<"<EFBFBD>H"<<"="<<(a-32)/1.8<<"<EFBFBD><EFBFBD>"<<endl;
|
||||
}
|
||||
}
|
12
history_source/ccf 入门篇/U2/2.4.2.cpp
Normal file
12
history_source/ccf 入门篇/U2/2.4.2.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
float a,b,c,p;
|
||||
while(true){
|
||||
cin>>a>>b>>c;
|
||||
p=(a+b+c)/2.0;
|
||||
cout<<"S="<<sqrt(p*(p-a)*(p-b)*(p-c))<<endl;
|
||||
}
|
||||
}
|
11
history_source/ccf 入门篇/U2/2.4.3.cpp
Normal file
11
history_source/ccf 入门篇/U2/2.4.3.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a;
|
||||
while(true){
|
||||
cin>>a;
|
||||
a=a*1001;
|
||||
cout<<a/7/11/13<<endl;
|
||||
}
|
||||
}
|
15
history_source/ccf 入门篇/U2/2.5.1.cpp
Normal file
15
history_source/ccf 入门篇/U2/2.5.1.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
cout<<"a=202"<<endl;
|
||||
cout<<"2*a=404"<<endl;
|
||||
cout<<"a=202"<<endl;
|
||||
cout<<"2323.343450"<<endl;
|
||||
cout<<" 2323.34"<<endl;
|
||||
cout<<"2323.34"<<endl;
|
||||
cout<<"2323.34"<<endl;
|
||||
cout<<"============"<<endl<<endl;
|
||||
cout<<"1, 1,001,123,123 ,00123";
|
||||
while(true);
|
||||
}
|
13
history_source/ccf 入门篇/U2/2.6.1.cpp
Normal file
13
history_source/ccf 入门篇/U2/2.6.1.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a,n,m;
|
||||
cin>>n>>m>>a;
|
||||
int x,y;
|
||||
x=n/a;
|
||||
y=m/a;
|
||||
cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<x*y<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
while(true);
|
||||
}
|
13
history_source/ccf 入门篇/U2/2.6.2.cpp
Normal file
13
history_source/ccf 入门篇/U2/2.6.2.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
while(true){
|
||||
double R,X,P;
|
||||
cin>>X>>R>>P;
|
||||
cout<<P<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ"<<X*pow(1+R/100.0,P)<<endl;
|
||||
}
|
||||
|
||||
}
|
13
history_source/ccf 入门篇/U2/2.6.3.cpp
Normal file
13
history_source/ccf 入门篇/U2/2.6.3.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double a,b,c,d;
|
||||
while(true){
|
||||
cin>>a>>b>>c;
|
||||
d=20-a-b-c;
|
||||
printf("<EFBFBD><EFBFBD>Ӧȥ<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>%G<><47><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ʯͷ\n",d);
|
||||
}
|
||||
}
|
21
history_source/ccf 入门篇/U2/2.6.4.cpp
Normal file
21
history_source/ccf 入门篇/U2/2.6.4.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int i=0;
|
||||
double a,b;
|
||||
while(true){
|
||||
cin>>a>>b;
|
||||
if(a<b)cout<<a<<" % "<<b<<"="<<a;
|
||||
else{
|
||||
if(a==b)cout<<a<<" % "<<b<<"="<<0;
|
||||
else{
|
||||
for(i=1;i*b<a;i++);
|
||||
cout<<a<<" % "<<b<<"="<<a-b*(i-1);
|
||||
}
|
||||
}
|
||||
cout<<endl;
|
||||
}
|
||||
}
|
15
history_source/ccf 入门篇/U2/2.6.5.cpp
Normal file
15
history_source/ccf 入门篇/U2/2.6.5.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
#include<cstdlib>
|
||||
#include<ctime>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
srand(time(0));
|
||||
int a,b,c;
|
||||
a=rand()%1000000+1;
|
||||
b=rand()%1000000+1;
|
||||
c=rand()%1000000+1;
|
||||
cout<<a<<"-"<<b<<"+"<<c<<"+"<<c<<"*("<<a<<"-"<<b<<")="<<a-b+c+c*(a-b)<<endl;
|
||||
while(true);
|
||||
}
|
Reference in New Issue
Block a user