摘要:
Given a string P consisting of only parentheses and asterisk characters (i.e. "(", ")" and ""), you are asked to replace all the asterisk characters i 阅读全文
摘要:
Let's define the Fibonacci sequence \(F_1,F_2,\dots\) as \(F_1=1,F_2=2,F_i=F_{i-1}+F_{i-2}\) (\(i\geq 3\)). It's well known that every positive intege 阅读全文
摘要:
Lead of Wisdom In an online game, "Lead of Wisdom" is a place where the lucky player can randomly get powerful items. There are k types of items, a pl 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; int a[1005][1005] = {0}, n, m; int main() { int t; cin >> t; while(t--) { memset(a, 0, sizeof(a)); cin > 阅读全文
摘要:
Problem Description S is a string of length n. S consists of lowercase English alphabets. Your task is to count the number of different S with the min 阅读全文
摘要:
https://www.jisuanke.com/contest/11360/challenges 其他题慢慢补 C. Pawn‘s Revenge You are playing a special chess game against a professor and you've almost 阅读全文
摘要:
Vladimir would like to prepare a present for his wife: they have an anniversary! He decided to buy her exactly nn flowers. Vladimir went to a flower s 阅读全文