- 博客(12)
- 资源 (2)
- 收藏
- 关注
原创 1076 An Easy Task
#include using namespace std; int rn(int y) {if ((y%4==0 &&y%100!=0)||(y%400==0)) return 1; else return 0; } int main() {int a; cin>>a; while(a--) {int y,n,m,q,i; cin>>y>>m; q=rn(y);
2014-04-08 21:24:32 447
原创 1071The area
#include #include using namespace std; int main() { int T; cin>>T; while(T--) {double x1,x2,x3,y1,y2,y3; cin>>x1>>y1>>x2>>y2>>x3>>y3; double a,b,c,k,m,s1,s2,s; a=(y2-y1)/(x2*x2-2*x1*x2+x1*
2014-04-08 21:24:15 402
原创 1061 N^N
#include using namespace std; int main() {int n,m,s,t,i; cin>>n; while(n--) {s=1; cin>>m; // 2 4 8 6 2 t=(m-1)%4;//4个一循环 3 9 7 1 3 m=m%10; // 4
2014-04-08 21:23:51 438
原创 1052Tian Ji -- The Horse Racing
#include using namespace std; int cmp(const void *a, const void *b) { return *(int *)b - *(int *)a; } int main() { int n,i,j,T,G,sum,s; int a[1000],b[1000]; while(cin>
2014-04-08 21:23:28 458
原创 1051 Wooden Sticks
#include #include #include #include using namespace std; struct stick { int l; int w; }s[5000]; bool cmp(stick a,stick b) { if(a.l return true; else if(a.l>b.l)
2014-04-08 21:23:06 421
原创 1050Moving Tables
#include using namespace std; int main() { int t,i,j,N,P[1000]; int s,d,temp,k,min; cin>>t; for(i=0;i { for(j=0;j P[j]=0;
2014-04-08 21:22:31 391
原创 1042 N!
/*万进制*/ #include #include using namespace std; int main() { void factorial(int n); //阶乘函数 int n; while(cin>>n) factorial(n); return 0; } void factorial(int n) { int a[10001];
2014-04-08 21:21:53 359
原创 1030 Delta-wave
#include #include "math.h" using namespace std; int Getn(int x) { int t = int(sqrt(double(x))); if(t *t == x) t--; return t; } int main() { int m,n; while(EOF != scanf("%d %d",&
2014-04-08 21:21:31 503
原创 1021 Fibonacci Again
#include using namespace std; int main() {int n; while(cin>>n) {if((n%8==2)||(n%8)==6) cout else cout } return 0; }
2014-04-08 21:21:05 386
原创 Digital Roots
#include #include using namespace std; void f(int n) { int t,sum=0; while(n!=0) {t=n%10; sum=sum+t; n=n/10;} if(0 {cout return;} else f(sum); } int main() {string a; wh
2014-04-08 21:20:36 599
原创 FatMouse' Trade
#include #include using namespace std; struct node // 节点 { int JavaBean; // 每个房间里面所拥有的 javabean 的重量 int Cat;
2014-04-05 08:54:15 442
原创 {A} + {B}
#include using namespace std; int cmp(const void *a, const void *b) { return *(int *)a - *(int *)b; } int a[20001],b[20001]; int main() {int i,j,n,m,t=0;// t记录重复的个数 while(cin>>n>>m) {
2014-04-05 08:51:37 490
历年北京理工大学计算机初试专业课
2020-05-13
图解密码技术(第三版)
2018-02-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人