'commit'
This commit is contained in:
BIN
C++课程/第九课2016年奥赛初赛试题解析/2016NOIP初赛.pdf
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/2016NOIP初赛.pdf
Normal file
Binary file not shown.
BIN
C++课程/第九课2016年奥赛初赛试题解析/4X4棋盘放两个空格.png
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/4X4棋盘放两个空格.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
BIN
C++课程/第九课2016年奥赛初赛试题解析/ASCII表.jpg
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/ASCII表.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 368 KiB |
13
C++课程/第九课2016年奥赛初赛试题解析/P_67.cpp
Normal file
13
C++课程/第九课2016年奥赛初赛试题解析/P_67.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int a,b;
|
||||
cout<<"a,b=";
|
||||
cin>>a>>b;
|
||||
if(a=b) cout<<a;
|
||||
else cout<<"Unequal";
|
||||
|
||||
return 0;
|
||||
}
|
||||
23
C++课程/第九课2016年奥赛初赛试题解析/p67_2.cpp
Normal file
23
C++课程/第九课2016年奥赛初赛试题解析/p67_2.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int a,b,c=0,d=0;
|
||||
cout<<"a,b=";
|
||||
cin>>a>>b;
|
||||
if(a>b)
|
||||
|
||||
//<2F><>һ<EFBFBD><D2BB>
|
||||
// {
|
||||
// c=a/b;
|
||||
// d=a%b;
|
||||
// }
|
||||
|
||||
//<2F>ڶ<EFBFBD><DAB6><EFBFBD>
|
||||
c=a/b;
|
||||
d=a%b;
|
||||
|
||||
cout<<c+d;
|
||||
return 0;
|
||||
}
|
||||
13
C++课程/第九课2016年奥赛初赛试题解析/p67_3.cpp
Normal file
13
C++课程/第九课2016年奥赛初赛试题解析/p67_3.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int n;
|
||||
cin>>n;
|
||||
int x,y,z;
|
||||
x=n/100;
|
||||
y=(n/10)%10;
|
||||
z=n%10;
|
||||
if (n==x*x*x+y*y*y+z*z*z) cout<<"YES";
|
||||
else cout<<"NO";
|
||||
return 0;
|
||||
}
|
||||
14
C++课程/第九课2016年奥赛初赛试题解析/p67_4.cpp
Normal file
14
C++课程/第九课2016年奥赛初赛试题解析/p67_4.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
for(int n=100; n<1000; n++) {
|
||||
int x,y,z;
|
||||
x=n/100;
|
||||
y=(n/10)%10;
|
||||
z=n%10;
|
||||
if (n==x*x*x+y*y*y+z*z*z) cout<<n<<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
BIN
C++课程/第九课2016年奥赛初赛试题解析/七个苹果三个盘子解析.png
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/七个苹果三个盘子解析.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
C++课程/第九课2016年奥赛初赛试题解析/二叉树问题解析.png
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/二叉树问题解析.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
C++课程/第九课2016年奥赛初赛试题解析/二进制转换.docx
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/二进制转换.docx
Normal file
Binary file not shown.
BIN
C++课程/第九课2016年奥赛初赛试题解析/程序的选择执行.pptx
Normal file
BIN
C++课程/第九课2016年奥赛初赛试题解析/程序的选择执行.pptx
Normal file
Binary file not shown.
Reference in New Issue
Block a user