제출 #1168696

#제출 시각아이디문제언어결과실행 시간메모리
1168696mnbvcxz123Kaučuk (COCI21_kaucuk)C++20
50 / 50
0 ms328 KiB
#include <bits/stdc++.h> using namespace std; #define int long long int #define ins insert #define pb push_back #define endl '\n' #define all(x) x.begin(),x.end() const int mod = 998244353; const int inf = LLONG_MAX; const int LG = 23; const int sze = 2e5+23; void fast(){ int a=0; int b=0; int c=0; int n; cin>>n; for(int i=0;i<n;i++){ string s; cin>>s; string t;cin>>t; if(s.size()==7){ ++a; cout<<a<<" "<<t<<endl; b=0; c=0; } else if(s.size()==10){ b++; cout<<a<<"."<<b<<" "<<t<<endl; c=0; } else if(s.size()==13){ c++; cout<<a<<"."<<b<<"."<<c<<" "<<t<<endl; } } } signed main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int tt =1; // cin>>tt; while(tt--){ fast(); } 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...