- 博客(6)
- 收藏
- 关注
原创 整蛊人的代码
#include <iostream>#include <windows.h>#include <ctime>#include <cstdlib>#include <stdio.h>#include <string.h>#include <fstream>using namespace std;int main (int argc,char *argv[]){ char copy[80]; .
2021-10-15 10:48:36
12945
2
原创 套利[题目][j2]
题目描述套利是利用货币汇率差异将一种货币单位转换成一种以上相同货币单位。例如,假设1美元买入0.5英镑,1英镑买入10.0法国法郎,1法国法郎买入0.21美元。然后,通过转换货币,聪明的交易者可以从1美元开始,买入0.5 * 10.0 * 0.21 = 1.05美元,获利5%。您的工作是编写一个程序,该程序将货币汇率列表作为输入,然后确定是否可以进行套利。输入第一行中,有一个整数n(1 <= n <= 30),代表不同货币的数量。 接下来的n行分别包含一种货币的名称。名...
2021-10-01 15:34:51
423
原创 洛谷 [1129] 空心六边形
#include <bits/stdc++.h>using namespace std;int main(){ int kg,x,li,n,z; cin>>n; z=n-2; for(int i=1;i<n;i++){ for(int j=1;j<=n-i;j++){ cout<<" "; } if(i==1){ for(in...
2021-09-24 22:08:36
557
原创 洛谷Jzoj [1201] 沙漏
#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; char mp[101][101]; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ mp[i][j]=' '; } } ...
2021-09-24 22:04:40
387
原创 c++打怪小游戏
c++打怪小游戏,作者(我)是个萌新,可能写的不好#include <bits/stdc++.h>#include <windows.h> //Sleep()using namespace std;int gk=0;struct i{ int hp=120,mhp=120; string name; int hurt=70; int gold=100; int fy=20;}my;struct npc1...
2021-08-27 22:32:43
402
原创 c++打怪小游戏(求大神指点)
#include <bits/stdc++.h>#include <windows.h> //Sleep()using namespace std;int gk=0;struct i{ int hp=120,mhp=120; string name; int hurt=70; int gold=100; int fy=20;}my;struct npc1{ int hp=200,h=30; st...
2021-08-27 22:22:49
466
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人