LOADING

加载过慢请开启缓存,浏览器默认开启

daily 1

2023/8/13

CF

#include<bits/stdc++.h>//万能头
using namespace std;
string s;
int main(){
    cin>>s;
    for(int i=0;i<s.size();i++){
        if(s[i]=='.')
            cout<<"0";
        else if(s[i]=='-'&&s[i+1]=='.')
            cout<<"1",s[i+1]=' ';
        else if(s[i]=='-'&&s[i+1]=='-')
            cout<<"2",s[i+1]=' ';/
    }
    return 0;
}