666

俞冰轩  •  1年前


include<bits/stdc++.h>

using namespace std; int s=0; int main(){

char l,x,y,n,m;
cin>>n>>x>>l>>m>>y;
if(x==m&&n==y)
    {
        cout<<s;
        return 0;
    }
while(1)
{
    s++;
    y++;
    if(y=='9'+1)
    {
        m++;
        y='0';
    }
    if(m=='6')
    {
        m='0';
        x++;
        if(n=='2'&&x=='4')
        {
            n='0';
            x='0';
        }
        if(x=='9'+1)
        {   
            n++;
            x='0';
        }
    }
    if(x==m&&n==y)
    {
        cout<<s;
        return 0;
    }
}

}


评论: