摘要: 注意sscanf的用法。 #include <bits/stdc++.h> using namespace std; int main(){ int xs,fz; string s; cin >> s; sscanf(s.c_str(),"%d:%d",&xs,&fz); if(xs>=0&&(xs 阅读全文
posted @ 2024-03-08 18:07 YuKiCheng 阅读(18) 评论(0) 推荐(0)