主程序: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 6 using System....
分类:
其他好文 时间:
2015-06-24 12:35:29
阅读次数:
83
Description 求sigma lcm(x,y),x 2 #include 3 #include 4 #define ll long long 5 using namespace std; 6 const int maxn=1e7+5,mod=20101009; 7 8 bool flag.....
分类:
其他好文 时间:
2015-06-24 12:30:46
阅读次数:
117
1.强制使用http替换https链接选择Options,勾选上"Use Download Cache"和"Force https://... sources to be fetched using http://..."2.管理插件源站点选择Tools >> Manage Add-on Sites...
分类:
移动开发 时间:
2015-06-24 12:28:42
阅读次数:
128
using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste...
分类:
Web程序 时间:
2015-06-24 12:25:24
阅读次数:
116
From android 4.4 , it supply one new animation with layout:transitionTo help you animate a change between one view hierarchy and another, Android prov...
分类:
其他好文 时间:
2015-06-24 12:16:36
阅读次数:
140
c_plus_plus_0x11.cpp:// c_plus_plus_0x11.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;class A{public: int add(int...
分类:
编程语言 时间:
2015-06-24 10:59:13
阅读次数:
194
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.Configuration;namesp...
//poj 3869
//sep9
#include
using namespace std;
char s[128];
int main()
{
scanf("%s",s);
int l=strlen(s);
int a=0,b=0,c=0,d=0;
for(int i=0;i<l;++i)
if(s[i]=='1')
++c;
d=l;
for(int i=0;i<l...
分类:
其他好文 时间:
2015-06-24 07:05:42
阅读次数:
167
题意:
给1*的格子,轮流在上面叉叉,最先画得3个连续叉叉的赢,问先手必胜还是必败。
分析:
求状态的grundy值(也就是sg值),具体怎么求详见代码,为什么这么求要自己想的,只可意会(别人都说去看game theory,呵呵)。
代码:
//poj 3537
//sep9
#include
#include
using namespace std;
int grundy[2048...
分类:
其他好文 时间:
2015-06-24 02:03:35
阅读次数:
122
Description 回答T组询问,有多少组gcd(x,y)=d,x 2 #include 3 #include 4 using namespace std; 5 const int maxn=5e4+5; 6 7 int flag[maxn],prime[maxn],cnt; 8 int m.....
分类:
其他好文 时间:
2015-06-24 01:56:15
阅读次数:
116