题意:给你一个时间,求最少多少分钟后,表示时间的字符串是一个回文串,时间是24小时制,但是24:00 表示为00:00
思路:暴力最多一天就一定会出现回文,所以最多24*60*60 xjb写就可以了
AC代码:
#include "iostream"#include "string.h"#include "stack"#include "queue"#include "string"#include "vector"#include "set"#include "map"#include "algorithm"#include "stdio.h"#include "math.h"#define bug(x) cout<<<" "<<"UUUUU"< >b>>s>>c; d=c%10; c=c/10; if(check()){ cout< < =10){ c++; d=0; } if(c>=6){ b++; c=0; } if(b>=24){ b=0; } } cout< <