自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (1)
  • 收藏
  • 关注

原创 hdu1062:Text Reverse

 #include #include #include //#include using namespace std; int main() {  int t,loc; // freopen("in.in", "r", stdin);  cin >> t;  cin.get();//刚开始把回车读掉  string str;  while (t--)  {

2016-05-26 14:28:46 482

原创 hdu2539:点球大战

 #include #include //#include using namespace std; int main() { //    freopen("in.in", "r", stdin);     int N, len, turn, i, j, score[2];     char str[120], xo[2][10];     while(cin >>

2016-05-26 10:58:54 513

原创 hdu2521:反素数

 #include using namespace std; int G(int x) {     int ret = 0;     for(int i = 1; i         if(x % i == 0)             ret++;     return ret + 1; } int main() {     int n, a, b, ret,

2016-05-26 09:29:28 510

原创 hdu2537:8球胜负

 //hdu2537 #include using namespace std; int main() {     int n, R, Y;     char c;     while(cin >> n && n != 0)     {         cin.get();//吃掉回车         R = Y = 0;         while(--n)   

2016-05-25 22:49:59 541

原创 hdu2535:Vote

 //hdu2535 #include #include using namespace std; int main() {     int N, sum, m, i;     int a[120];     while(cin >> N && N != 0)     {         sum = 0;         for(i = 0; i        

2016-05-24 11:34:32 439

原创 hdu2520:我是菜鸟,我怕谁

//hdu2520 #include using namespace std; int main() {     long t, v, s, i;     int T;     cin >> T;     while(T--)     {         cin >> t;         v = s = 1;         i = t - 1;         wh

2016-05-24 11:02:41 467

原创 hdu2502:月之数

 //hdu2502 #include using namespace std; int C(int n, int p) {     double ret = 1;     while(p)     {         ret *= (double)n / p;         p--;         n--;     }     return (int)(ret

2016-05-24 10:04:54 531

原创 hdu2504:又见gcd

 #include using namespace std; int gcd(int a, int b) {     int t, r;     if(a > b)     {         t = b;         b = a;         a = t;     }     while(a)     {         r = b % a;     

2016-05-24 08:53:02 514

原创 hdu2503:a/b + c/d

//hdu2503 #include #include using namespace std; int gcd(int a, int b) {     int t, r;     if(a > b)     {         t = b;         b = a;         a = t;     }     while(a)     {

2016-05-21 23:29:36 728

原创 hdu2519:新生晚会

//hdu2519 #include #include using namespace std; double home(__int64 n,__int64 m)//返回类型必须是浮点型,不然会造成误差 {     __int64 i = m;     double sum = 1.0;     while(i--)     {         sum = sum

2016-05-21 23:16:40 480

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除