Loading... 洛谷P1615 ``` cin >> time1 sscanf(time1.c_str(), "%d:%d:%d", &h1, &m1, &s1); // c_str()获取字符串地址 // 或者直接这样写 scanf("%d:%d:%d", &h1, &m1, &s1); ``` Last modification:October 15, 2021 © Allow specification reprint Like 0 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed