0_0_13812714_5471.cpp:1:11: error: #include expects "FILENAME" or <FILENAME>
#include #include <IOSTREAM> #include <CSTRING> #include <CSTDLIB> #include <STRING> #include <CCTYPE> #include <VECTOR> #include <CSTDIO> #include <CMATH> #include <DEQUE> #include <STACK> #include <DIV style="Z-INDEX: 2147483646; POSITION: fixed; BORDER-BOTTOM-STYLE: none; PADDING-BOTTOM: 0px; BORDER-RIGHT-STYLE: none; PADDING-LEFT: 0px; WIDTH: 130px; PADDING-RIGHT: 0px; DISPLAY: block; BORDER-TOP-STYLE: none; BACKGROUND: none transparent scroll repeat 0% 0%; FLOAT: none; HEIGHT: 360px; VISIBILITY: visible; BORDER-LEFT-STYLE: none; OVERFLOW: hidden; TOP: 37px; RIGHT: 7px; PADDING-TOP: 0px; maring: 0" id=cproIframe2002holder><DIV style="Z-INDEX: 100; POSITION: absolute; FILTER: alpha(opacity=0); BACKGROUND-COLOR: #999999; WIDTH: 130px; HEIGHT: 28px; TOP: 275px; CURSOR: pointer; LEFT: 0px; opacity: 0" id=cproIframe2002CloseBtnWrap></DIV><DIV style="POSITION: absolute; TEXT-ALIGN: center; LINE-HEIGHT: 20px; BACKGROUND-COLOR: #999999; WIDTH: 130px; FONT-FAMILY: ���ź�; HEIGHT: 20px; COLOR: #fff; FONT-SIZE: 12px; TOP: 280px; CURSOR: pointer; LEFT: 0px" id=cproIframe2002CloseBtn>�ر�</DIV><DIV style="WIDTH: 130px; HEIGHT: 360px; OVERFLOW: hidden"><DIV style="DISPLAY: none">-</DIV><IFRAME id=cproIframe2002 height=360 marginHeight=0 src="http://cb.baidu.com/ecom?adn=1&at=6&aurl=&cad=1&ccd=16&ccw=10000&cec=gb2312&cfv=14&ch=0&col=zh-cn&conOP=0&cpa=1&ct=1&dai=12&dis=0&fa=1&flw=1&ls=3<r=<u=http%3A%2F%2Fwww.2cto.com%2Fkf%2F201411%2F352302.html&lunum=6&n=cnrhucpr&pcs=965x397&pis=10000x10000&ps=3713x-2&psr=1280x1024&pss=980x3715&pt=1&qn=5606e4ba02f0b7dc&rad=&rs=301&rsi0=120&rsi1=270&rsi5=4&rsi6=-1&rsi7=0&rss0=&rss1=&rss2=&rss3=&rss4=&rss5=&rss6=&rss7=&scale=&skin=&td_id=9223372032564490119&tn=template_float_all_normal&tpr=1416033839429&ts=1&ww=1024&xuanting=0&stid=2&dtm=BAIDU_DUP2_SETJSONADSLOT&dc=2&di=137946&distp=2002&adclass=1&conW=130&conH=360" frameBorder=0 width=130 allowTransparency marginWidth=0 scrolling=no align=center,center></IFRAME><DIV></DIV></DIV></DIV><DIV style="Z-INDEX: 2147483646; POSITION: fixed; BORDER-BOTTOM-STYLE: none; PADDING-BOTTOM: 0px; BORDER-RIGHT-STYLE: none; PADDING-LEFT: 0px; WIDTH: 130px; PADDING-RIGHT: 0px; DISPLAY: block; BORDER-TOP-STYLE: none; BACKGROUND: none transparent scroll repeat 0% 0%; FLOAT: none; HEIGHT: 360px; VISIBILITY: visible; BORDER-LEFT-STYLE: none; OVERFLOW: hidden; TOP: 37px; PADDING-TOP: 0px; LEFT: 7px; maring: 0" id=cproIframe2001holder><DIV style="Z-INDEX: 100; POSITION: absolute; FILTER: alpha(opacity=0); BACKGROUND-COLOR: #999999; WIDTH: 130px; HEIGHT: 28px; TOP: 275px; CURSOR: pointer; LEFT: 0px; opacity: 0" id=cproIframe2001CloseBtnWrap></DIV><DIV style="POSITION: absolute; TEXT-ALIGN: center; LINE-HEIGHT: 20px; BACKGROUND-COLOR: #999999; WIDTH: 130px; FONT-FAMILY: ���ź�; HEIGHT: 20px; COLOR: #fff; FONT-SIZE: 12px; TOP: 280px; CURSOR: pointer; LEFT: 0px" id=cproIframe2001CloseBtn>�ر�</DIV><DIV style="WIDTH: 130px; HEIGHT: 360px; OVERFLOW: hidden"><DIV style="DISPLAY: none">-</DIV><IFRAME id=cproIframe2001 height=360 marginHeight=0 src="http://cb.baidu.com/ecom?adn=1&at=6&aurl=&cad=1&ccd=16&ccw=10000&cec=gb2312&cfv=14&ch=0&col=zh-cn&conOP=0&cpa=1&ct=1&dai=12&dis=0&fa=1&flw=1&ls=3<r=<u=http%3A%2F%2Fwww.2cto.com%2Fkf%2F201411%2F352302.html&lunum=6&n=cnrhucpr&pcs=965x397&pis=10000x10000&ps=3713x-2&psr=1280x1024&pss=980x3715&pt=1&qn=5606e4ba02f0b7dc&rad=&rs=301&rsi0=120&rsi1=270&rsi5=4&rsi6=-1&rsi7=0&rss0=&rss1=&rss2=&rss3=&rss4=&rss5=&rss6=&rss7=&scale=&skin=&td_id=9223372032564490119&tn=template_float_all_normal&tpr=1416033839429&ts=1&ww=1024&xuanting=0&stid=2&dtm=BAIDU_DUP2_SETJSONADSLOT&dc=2&di=137946&distp=2001&adclass=1&conW=130&conH=360" frameBorder=0 width=130 allowTransparency marginWidth=0 scrolling=no align=center,center></IFRAME><DIV></DIV></DIV></DIV><MAP> #include <SET> #define ll long long#define maxn 1010#define pp pair<INT,INT> #define INF 0x3f3f3f3f#define max(x,y) ( ((x) > (y)) ? (x) : (y) ) #define min(x,y) ( ((x) > (y)) ? (y) : (x) ) using namespace std; int n,v[27],a[66],b[66],num[27]; void solve() { memset(a,0,sizeof(a));a[0]=1; for(int i=0;i<26;i++) { memset(b,0,sizeof(b)); for(int j=0;j<=num[i]&&j*v[i]<=50;j++) for(int k=0;k+j*v[i]<=50;k++) b[k+j*v[i]]+=a[k]; memcpy(a,b,sizeof(b)); } int ans=0; for(int i=1;i<=50;i++) ans+=a[i]; printf("%d\n",ans); } int main() { int T; for(int i=0;i<26;i++) v[i]=i+1; scanf("%d",&T); while(T--) { for(int i=0;i<26;i++) scanf("%d",&num[i]); solve(); } return 0; }</PRE>
^
|