标签:class inf namespace nbsp 改变 using sub 限制 res
#include <iostream> #include <cstdio> #include <algorithm> #include <cstdlib> #define for(i,x,n) for(int i=x;i<n;i++) #define ll long long int using namespace std; int a[105][1005]={0}; int main() { int m,n; int x,y; scanf("%d %d",&n,&m); for(i,0,m){ scanf("%d %d",&x,&y); a[x][i]=1; a[y][i]=-1; } for(i,1,n+1){ for(j,0,m){ printf("%d ",a[i][j]); } printf("\n"); } return 0; }
标签:class inf namespace nbsp 改变 using sub 限制 res
原文地址:http://www.cnblogs.com/TWS-YIFEI/p/6308760.html