首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
阿灿
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
81
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
275
阅读数
10600
取模运算 题解:快速幂+大数字变小
#include<bits/stdc++.h> using namespace std; long long fast_pow(long long base,long long q,long long mod){ long long ans =1; while( ...
P5133
2025年3月16日 00:30
回复 0
|
赞 9
|
浏览 242
简单排序 题解:还是拉了
#include<bits/stdc++.h> using namespace std; int main(){ int i,max=0,n; cin>>n; string str; map<string,int> m; for(...
P1929
2025年3月16日 00:11
回复 0
|
赞 1
|
浏览 101
密码的翻译 题解:
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin>>str){ for(char &c:str){ if(c>='a'&a...
P3502
2025年3月15日 23:56
回复 0
|
赞 3
|
浏览 124
字符串替换 题解:find+replace
#include<bits/stdc++.h> using namespace std; int main(){ string str; int flag=0; cin>>str; transform(str.begin(), str.end()...
P2011
2025年3月15日 23:40
回复 0
|
赞 4
|
浏览 155
三角形判定 题解:sort
#include<bits/stdc++.h> using namespace std; void fun(int a,int b,int c){ if(c*c<(a*a+b*b)){ cout<<"1"<<endl; }else...
P2018
2025年3月15日 23:30
回复 0
|
赞 3
|
浏览 144
进制转换问题 题解:static_cast
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // 计算需要的二进制位数 int bits = n == 0 ?...
P4967
2025年3月15日 23:18
回复 0
|
赞 1
|
浏览 140
求斐波那契数列的第n项 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n; int sn[20]; sn[0] = 1; sn[1] = 1; sn[2] = 2; for(int i=3;i<...
P2013
2025年3月15日 23:06
回复 0
|
赞 2
|
浏览 170
字符串转化 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; int ans; while(cin>>s){ ans=0; for(char c:s){ an...
P2020
2025年3月15日 23:02
回复 0
|
赞 11
|
浏览 250
骨牌铺方格 题解:dp规划
#include<bits/stdc++.h> using namespace std; int dp[1000]; int countWays(int n){ if(n==0) return 1; if(n==1) return 1; if(n==2) re...
P1029
2025年3月15日 22:45
回复 0
|
赞 2
|
浏览 143
素数求和 题解:
#include<bits/stdc++.h> using namespace std; bool shu(int x){ for(int i=2;i<=sqrt(x);i++){ if(x%i == 0){ return false; } ...
P1714
2025年3月15日 21:51
回复 0
|
赞 3
|
浏览 135
大写字母转换小写字母 题解:C++ transform
#include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; transform(a.begin(),a.end(),a.begin(),::tolower);...
P1713
2025年3月15日 21:46
回复 0
|
赞 0
|
浏览 85
回文数 题解:string一下完了
#include<bits/stdc++.h> using namespace std; int main(){ string k1,k2; int n; while(cin>>k1){ k2.clear(); n=k1.length()...
P1712
2025年3月15日 21:36
回复 0
|
赞 1
|
浏览 98
输出素数 题解:
#include<bits/stdc++.h> using namespace std; int i; bool shu(int x){ for(i=2;i<=sqrt(x);i++){ if(x%i==0){ return false; }...
P2003
2025年3月15日 21:26
回复 0
|
赞 0
|
浏览 83
出现次数最多的数 题解:一个map走天下
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,max_value=0,max_key=0; map<int,int> myMap; cin>>n; w...
P2001
2025年3月15日 21:16
回复 0
|
赞 0
|
浏览 102
字符个数 题解:我还是慢了
#include<bits/stdc++.h> using namespace std; int main(){ string n; getline(cin,n); int a1=0,a2=0,a3=0,a4=0; for(char a:n){ if(...
P1042
2025年3月15日 20:31
回复 1
|
赞 3
|
浏览 82
平方和与倒数和 题解:pow
#include<bits/stdc++.h> using namespace std; int main(){ float a,b,c; int i; float ans; cin>>a>>b>>c; for(i=1...
P1045
2025年3月15日 20:25
回复 0
|
赞 3
|
浏览 157
扫雷游戏 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,i,j,k,x,y,sum; char sn[1000][1000]; char ans[1000][1000]; cin>...
P5263
2025年3月15日 19:46
回复 0
|
赞 12
|
浏览 203
打印共底的空心直角三角形 题解:判断一下就行了
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,j,sn[100][100]={0}; cin>>n; for(i=0;i<n;i++){ for(j=...
P5245
2025年3月15日 19:03
回复 0
|
赞 16
|
浏览 207
泰勒展开式 题解:我看不懂,直接cos
#include<bits/stdc++.h> using namespace std; int main(){ float n; cin>>n; printf("%.4f\n",cos(n)); return 0; }
P5207
2025年3月15日 18:43
回复 0
|
赞 8
|
浏览 256
矩阵求和 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,j; int sn[100][100]; int row; cin>>n; for(i=0;i<n;i++...
P1135
2025年3月15日 17:26
回复 0
|
赞 0
|
浏览 150
1
2
3
4
5
本科学校:湘潭大学
目标学校:湘潭大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!