제출 #805647

#제출 시각아이디문제언어결과실행 시간메모리
805647HD1Monthly railway pass (LMIO18_menesinis_bilietas)C++14
0 / 100
391 ms54252 KiB
// we all are lost trying to be someone. #include <bits/stdc++.h> #define fastio ios_base::sync_with_studio(0); cin.tie(0); #define sz(x) long long(x.size()) #define all(x) x.begin(),x.end() #define rall(x) x.rbegin(),x.rend() #define pb push_back #define ss second #define ff first using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll,ll> ii; const int MAX=1e6; const int inf=1e9; const int mod=1e9+7; vector<ii>gfo[MAX]; void solve(){ ll n, m, u, v; char x; cin>>n>>m; for(ll i=0; i<m; i++){ cin>>u>>v>>x; if(x=='A'){ gfo[u].pb({v,1}); gfo[v].pb({u,1}); } else{ gfo[u].pb({v,0}); gfo[v].pb({u,0}); } } cout<<n<<endl; return; } int main(){ solve(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...