跳到正文

个人记录

Code

Momoi_Saiba约 2 分钟
原文

这是 2026年9月24日 存档的第 3 版,不是当前版本。查看当前版本

文章信息与版本
C++
#include <bits/stdc++.h>
#define int long long
#define fr first
#define se second
#define vt vector
#define pii pair<int,int>
#define mkp make_pair
#define pb push_back
#define endl '\n'
#define I_am_a_furry return
const int inf=INT_MAX;
using namespace std;

bool out(int i,string s){
    return (i>=s.size());
}
bool check_lt(string s){
    int i=0;
    while(!out(i)&&isdigit(s[i])) i++;
    if(out(i+1)) return 0;
    if(s[i+1]!='.') return 0;
    i+=2;
    while(!out(i)&&isdigit(s[i])) i++;
    if(out(i+1)) return 0;
    if(s[i+1]!='.') return 0;
    i+=2;
    while(!out(i)&&isdigit(s[i])) i++;
    if(out(i+1)) return 0;
    if(s[i+1]!='.') return 0;
    i+=2;
    while(!out(i)&&isdigit(s[i])) i++;
    if(out(i+1)) return 0;
    if(s[i+1]!=':') return 0;
    i+=2;
    if(out(i)) return 0;
    return isdigit(s[i]);
}
bool check(string s){
    int ct1=0,ct2=0;
    for(knt i=0;i<s.size();i++){
        if(s[i]=='.') ct1++;
        if(s[i]==':') ct2++;
    }
    if(ct1!=3||ct2!=1) return 0;
    if(!check_lt(s)) return 0;
    
}
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t;
    cin >> t;
    while(t--){
        string op,s;
        cin >> op >> s;
        
    }
	I_am_a_furry 0;
}