// Problem: A. Efim与奇怪的成绩 // Contest: UOJ - 丽泽普及2022交流赛day1 // URL: http://zhengruioi.com/contest/1062/problem/407 // Memory Limit: 256 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h> usingnamespace std; //#define int long long inlineintread(){int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+ (x<<3)+(ch^48);ch=getchar();}return x*f;} #define N 200010 //#define M //#define mo int n, m, i, j, k; char s[N];
// Problem: B. 美丽的IP地址 // Contest: UOJ - 丽泽普及2022交流赛day1 // URL: http://zhengruioi.com/contest/1062/problem/408 // Memory Limit: 256 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h> usingnamespace std; #define int long long inlineintread(){int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+ (x<<3)+(ch^48);ch=getchar();}return x*f;} #define N 110 //#define M //#define mo int n, m, i, j, k; int a[N], b[N], c[N], dp[N][7], ans, l;
intcheck(int l, int r, int s) { int j, k; if(a[l]==0&&r-l+1!=1) return0; for(j=l, k=0; j<=r; ++j) k=k*10+a[j]; if(k>s) return0; return1; }
// Problem: C. Tic-tac-toe // Contest: UOJ - 丽泽普及2022交流赛day1 // URL: http://zhengruioi.com/contest/1062/problem/409 // Memory Limit: 256 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h> usingnamespace std; //#define int long long inlineintread(){int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+ (x<<3)+(ch^48);ch=getchar();}return x*f;} //#define N //#define M //#define mo int n, m, i, j, k; char s[9][9];
// Problem: D. 小 X 与煎饼达人 // Contest: UOJ - 丽泽普及2022交流赛day1 // URL: http://zhengruioi.com/contest/1062/problem/410 // Memory Limit: 256 MB // Time Limit: 1000 ms // // Powered by CP Editor (https://cpeditor.org)
#include<bits/stdc++.h> usingnamespace std; //#define int long long inlineintread(){int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1; ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+ (x<<3)+(ch^48);ch=getchar();}return x*f;} #define N 1000010 //#define M //#define mo int n, m, i, j, k; int a[N], ans, x, y;