Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- typedef long long Long;
- #define MAX 1001
- #define PB push_back
- #define MP make_pair
- #define FF first
- #define SS second
- #define PII pair<int, int>
- #define VI vector<int>
- #define FOR(a, n) for(int i=a;i<n;i++)
- #define FORn(a, n) for(int i=a;i<=n;i++)
- #define mm(a, n) memset(a, n, sizeof(a))
- #define PF printf
- #define PC putchar
- #define GC getchar
- #define printCase cout<<"Case "<<i<<": "vagfol
- #define printCaseC PF("Case %d: ", i)
- #define II() ({int a; scanf("%d", &a); a;})
- #define LI() ({Long a; scanf("%I64d", &a); a;})
- #define DI() ({double a; scanf("%lf", &a); a;})
- #define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL);
- //double pi=atan(1)*4;
- using namespace std;
- int G[MAX][MAX];
- int n, e;
- void Read()
- {
- cin>>n>>e;
- FOR(0, e)
- {
- int u, v, c;
- cin>>u>>v>>c;
- G[u][v]=c;
- }
- }
- r
- int main()
- {
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- #else
- #endif
- /* *******Bismillahir Rahmanir Rahim **** */
- // FastIO;
- Read();
- FWA();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement