摘要:
#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;struct data{ ... 阅读全文
摘要:
#include#include#includeusing namespace std;int main(){ int _,i,n,ans; double a[1024],sum; scanf("%d",&_); while(_--) { ... 阅读全文
摘要:
#include#include#include#includeusing namespace std;int k,n,m;char s[40][40][40];int use[40][40][40];int dx[]= {0,0,1,-1,0,0};int dy[]= {1,-1,... 阅读全文
摘要:
#include#include#includeusing namespace std;int main(){ int i,n,a[1024],b[1024],use[1024]; while(~scanf("%d",&n)) { for(i=0;i<... 阅读全文
摘要:
#include#include#includeusing namespace std;int main(){ int a[20],i,j,n,f; char s[100]; memset(a,0,sizeof(a)); f=1; while(~scan... 阅读全文
摘要:
#include int main(){ while(1) { int i, n; int maxday, maxvalue = -1; scanf("%d", &n); if (n == 0) break; ... 阅读全文
摘要:
#include#include#includeusing namespace std;int n,m,a[20][400],use[20],flag;int check(){ int i,j,sum,f=1; for(j=0; j1) { ... 阅读全文
摘要:
#include#include#include#includeusing namespace std;int mp[10][10],row[10][10],col[10][10],grid[10][10];int get(int x,int y){ if(x>=1&&x=1&... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;const int N=10... 阅读全文
摘要:
#include#includeusing namespace std;int fa,fb;void dfs(int a,int b,int k){ if(b==1) { fb=1; if(a==1) fa=1; } if(k==1... 阅读全文