- 博客(12)
- 收藏
- 关注
原创 洛谷世界2.0
#include<stdlib.h>#include<stdio.h>#include<time.h> //suiji #include<string.h>#include<windows.h> //SLEEP函数struct Player //玩家结构体,并初始化player{ char name[21]; int atta...
2018-06-09 11:51:07
593
原创 彩票游戏
#include <cstdlib>#include <iostream>#include <cstdio>#include <cmath>#include <cstring>#include <algorithm>#include <queue>#include <string>#in
2018-06-09 11:48:23
485
1
原创 判断数正负
#include <iostream> using namespace std; int main() { int N; cin>>N; if(N>0)cout<<"positive"; if(N==0)cout<<"zero"; if(N<0)cout<<"negative&quo
2018-05-27 19:23:38
1941
原创 判断
#include<iostream> using namespace std; int main(){ int k; cin>>k; if(k>0)cout<<"+"; if(k<0)cout<<"-"; if(k==0)cout<<"zero"; return 0;}
2018-05-27 19:22:11
89
原创 分段函数
#include <bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x; if(x>0) y=x+1; if(x==0) y=x; if(x<0) y=x-1; cout<<y<<endl; return 0; }
2018-05-27 19:20:39
350
原创 圆的s,c
#include <bits/stdc++.h> using namespace std; int main() { int r; float s,c; cin>>r; s=3.1415926*r*r; c=3.1415926*2*r; cout<<fixed<<setprecision(2)<<s<<endl; ...
2018-05-27 19:19:18
126
原创 Hello world!
#include <iostream> using namespace std; int main() { cout<<"Hello, World!"; return 0; }
2018-05-27 19:14:05
93
原创 a,b之和
#include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b<<endl; return 0; }
2018-05-27 19:12:18
129
原创 320-360偶数和
#include <iostream> using namespace std; int main() { int s,i; s=0; for(i=320;i<=360;i++) { if(i%2==0)s=s+i; } cout<<"320-360偶数和"<<s<<endl; return 0; }...
2018-05-27 19:08:14
128
原创 1+2+3+...+n
#include <bits/stdc++.h> using namespace std; int main() { int n,S; cin>>n; S=(1+n)*n/2; cout<<S<<endl; return 0; }
2018-05-27 19:06:50
510
原创 超级玛丽
#include <bits/stdc++.h> using namespace std; int main() { puts(" ********");puts(" ************");puts(" ####....#.");puts(" #..###.....##...
2018-05-27 15:01:23
338
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人