- 博客(6)
- 收藏
- 关注
原创 A. Holidays
On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work days and then 2 days off. Your task is to determine the minimum possible and the maximum possible number of days off p
2021-04-14 18:38:41 113 1
原创 P5832 [USACO19DEC]Where Am I? B
题目描述Farmer John 出门沿着马路散步,但是他现在发现可能迷路了!沿路有一排共 N 个农场。不幸的是农场并没有编号,这使得 Farmer John 难以分辨他在这条路上所处的位置。然而,每个农场都沿路设有一个彩色的邮箱,所以 Farmer John 希望能够通过查看最近的几个邮箱的颜色来唯一确定他所在的位置。每个邮箱的颜色用 A…Z 之间的一个字母来指定,所以沿着道路的 N个邮箱的序列可以用一个长为 N 的由字母 A…Z 组成的字符串来表示。某些邮箱可能会有相同的颜色。Farmer John
2021-04-11 15:01:12 899
原创 A - Odd vs Even
题目链接:https://atcoder.jp/contests/arc116/tasks/arc116_aMy Answer Code:/* Author:Albert Tesla Wizard Time:2021/4/9 15:38*/#include<bits/stdc++.h>using namespace std;using ull=unsigned long long;void solve(ull n){ if(n%2==1)cout<<"Od
2021-04-09 15:38:51 147 1
原创 B. Delete from the Left
https://codeforces.com/problemset/problem/1005/BMy Answer Code:/* Author:Albert Tesla Wizard Time:2021/4/7 17:22*/#include<bits/stdc++.h>using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); string s1,s2; c
2021-04-08 17:24:43 102
原创 A. Déjà Vu
A palindrome is a string that reads the same backward as forward. For example, the strings “z”, “aaa”, “aba”, and “abccba” are palindromes, but “codeforces” and “ab” are not. You hate palindromes because they give you déjà vu.There is a string s. You must
2021-04-05 23:43:47 157
原创 B. Reversing Encryption
A string s of length n can be encrypted by the following algorithm:iterate over all divisors of n in decreasing order (i.e. from n to 1),for each divisor d, reverse the substring s[1…d] (i.e. the substring which starts at position 1 and ends at position
2021-04-05 12:39:35 67
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人