首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
A1120161820
这个人很懒,什么都没有写。。。
关注
发消息
文章
0
题解
84
发帖
0
笔记
0
Ta的粉丝
408
关注数
2
粉丝数
408
获赞数
125
阅读数
899193
点的距离(c++)
#include<iostream> #include<cstdio> #include<cmath> using namespace std; class CPoint{ private: int x, y; public: CPo...
P1444
2020年3月7日 10:40
回复 0
|
赞 4
|
浏览 7.7k
直角三角形(c++)
个人感觉这题有点问题,标准答案似乎忘记判断这个三角形是否满足任意两边之和大于第三边 #include<iostream> #include<cstdio> #include<cmath> using namespace std; class...
P1445
2020年3月7日 11:19
回复 1
|
赞 1
|
浏览 15.0k
编排字符串(c++)
#include<iostream> #include<string> #include<vector> using namespace std; int main() { int m; vector<string> vst...
P1447
2020年3月8日 10:29
回复 1
|
赞 2
|
浏览 9.0k
分组统计(c++)
#include<iostream> #include<cstdlib> using namespace std; int main() { int m; cin >> m; while (m--) { int n; ci...
P1448
2020年3月8日 11:19
回复 0
|
赞 2
|
浏览 8.7k
单词识别(c++)
#include<iostream> #include<string> #include<cstring> #include<map> #include<algorithm> using namespace std; ...
P1452
2020年3月9日 09:52
回复 0
|
赞 7
|
浏览 11.2k
加法等式(c++)
#include<iostream> using namespace std; int main() { for (int num = 100; num < 532; num++) { int a = num/100; int b = (num%10...
P1459
2020年3月9日 09:58
回复 0
|
赞 0
|
浏览 8.3k
完数与盈数(c++)
注意输出格式 #include<iostream> #include<vector> using namespace std; int main() { vector<int> ve; vector<int> vg; ...
P1460
2020年3月9日 10:10
回复 0
|
赞 1
|
浏览 7.8k
反序相等(c++)
#include<iostream> using namespace std; int main() { for (int num = 1000; num <= 9999; num++) { int a = num/1000; int b = (nu...
P1461
2020年3月9日 10:16
回复 0
|
赞 0
|
浏览 9.0k
01序列(c++)(栈)
/* 对于长度为6位的一个01串,每一位都可能是0或1,一共有64种可能。它的前几个是: 000000 000001 000010 000011 000100 请按从小到大的顺序输出这64种01串。 */ #include<iostream> #inclu...
P1001
2020年3月18日 10:07
回复 0
|
赞 0
|
浏览 12.5k
数字统计(c++)
#include<iostream> using namespace std; int main() { int L, R; while (cin >> L >> R) {//EOF结束输入 int ans = 0;//计数 ...
P1002
2020年3月18日 10:15
回复 0
|
赞 2
|
浏览 11.0k
翻转数字和(c++)
#include<iostream> using namespace std; int reverse(int num) { int ans = 0;//翻转结果 while (num > 0) { int tmp = num%10; ans ...
P1003
2020年3月18日 15:37
回复 0
|
赞 0
|
浏览 9.1k
博学楼的阶梯(c++)
#include<iostream> using namespace std; int main() { int T; cin >> T; while (T--) { int n; cin >> n; int ans ...
P1005
2020年3月18日 15:55
回复 0
|
赞 2
|
浏览 10.5k
字符串翻转(c++)
#include<iostream> #include<stack> using namespace std; int main() { string s; cin >> s; for (int i = s.length()-1; i...
P1006
2020年3月18日 16:00
回复 0
|
赞 1
|
浏览 12.2k
整除(c++)
#include<iostream> using namespace std; int main() { int count = 1;//计数,用于控制输出格式 for (int num = 100; num <= 1000; num++) { if...
P1007
2020年3月18日 16:06
回复 0
|
赞 0
|
浏览 13.3k
0和1的个数(c++)
#include<iostream> using namespace std; int main() { int num; cin >> num; int count = 0; //int有32位,需要保证0和1的总数为32,所以只需要记录1的...
P1008
2020年3月18日 16:17
回复 0
|
赞 2
|
浏览 10.4k
随机数(c++)
其实就是遍历累加 #include<iostream> using namespace std; int main() { int ans = 0; for (int i = 1; i <= 20; i++) ans += i; cout &...
P1009
2020年3月18日 16:22
回复 0
|
赞 0
|
浏览 12.2k
排序(c++)
题目没有明确要求,可以直接调用库函数 #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; ...
P1010
2020年3月18日 16:35
回复 0
|
赞 0
|
浏览 11.1k
日期(c++)
注意星期输出 #include<iostream> using namespace std; int days[] = {0, 30, 31, 30, 31, 31, 30, 31, 30, 31};//4月之后每月的天数,第一个元素为0便于计数 string w...
P1011
2020年3月18日 17:08
回复 0
|
赞 7
|
浏览 11.9k
字符移动(c++)
#include<iostream> #include<string> using namespace std; int main() { string s, s1 = "", s2 = "";//保存完整字符串、字符、数字 cin >>...
P1012
2020年3月19日 09:07
回复 0
|
赞 3
|
浏览 11.3k
判断素数(c++)
注意:1不是素数 #include<iostream> using namespace std; bool fun(int num) { //判断num是否是素数 if (num == 1)//1不是素数 return false; for (...
P1013
2020年3月19日 09:19
回复 0
|
赞 0
|
浏览 11.1k
1
2
3
4
5
本科学校:北京理工大学
目标学校:北京理工大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!