Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. typedef long long Long;
  3.  
  4. #define MAX 1001
  5.  
  6. #define PB push_back
  7. #define MP make_pair
  8. #define FF first
  9. #define SS second
  10.  
  11. #define PII pair<int, int>
  12. #define VI vector<int>
  13.  
  14. #define FOR(a, n) for(int i=a;i<n;i++)
  15. #define FORn(a, n) for(int i=a;i<=n;i++)
  16.  
  17. #define mm(a, n) memset(a, n, sizeof(a))
  18.  
  19. #define PF printf
  20. #define PC putchar
  21. #define GC getchar
  22.  
  23. #define printCase cout<<"Case "<<i<<": "vagfol
  24. #define printCaseC PF("Case %d: ", i)
  25.  
  26. #define II() ({int a; scanf("%d", &a); a;})
  27. #define LI() ({Long a; scanf("%I64d", &a); a;})
  28. #define DI() ({double a; scanf("%lf", &a); a;})
  29.  
  30. #define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL);
  31. //double pi=atan(1)*4;
  32.  
  33. using namespace std;
  34. int G[MAX][MAX];
  35. int n, e;
  36. void Read()
  37. {
  38. cin>>n>>e;
  39. FOR(0, e)
  40. {
  41. int u, v, c;
  42. cin>>u>>v>>c;
  43. G[u][v]=c;
  44. }
  45. }
  46. r
  47. int main()
  48. {
  49. #ifndef ONLINE_JUDGE
  50. freopen("input.txt", "r", stdin);
  51. freopen("output.txt", "w", stdout);
  52. #else
  53. #endif
  54. /* *******Bismillahir Rahmanir Rahim **** */
  55. // FastIO;
  56. Read();
  57. FWA();
  58. return 0;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement