摘要:
A - An abandoned sentiment from past 由于所有的数组B内所有的数都不同,因此当k > 1是就可以使该序列不递增 当k = 1是,带入B[0],判断序列A是否递增就可以啦 #include <bits/stdc++.h> using namespace std; c 阅读全文
摘要:
A. Sagheer and Crossroads 枚举 #include <bits/stdc++.h> using namespace std; typedef long long int LL; const int MAXN = 100005; int n; int a[4][4]; int 阅读全文
摘要:
F. Financiers Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output This problem has unus 阅读全文
摘要:
如果要计算一个中缀表达式,我们首先要将中缀表达式转化为后缀表达式 例如 a + b * c => a b c * + 在遇到每个运算符的时候我们可以将栈顶的两个数运算,然后其结果放入栈中 因此我们可以用两个栈存放 ,一个栈存放数字,另一个栈存放运算符号 如果入栈的是数字,则直接将该数字放入数字栈中 阅读全文
摘要:
D. Presents in Bankopolis time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Presents in 阅读全文
摘要:
C. Mice problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Mice problem time lim 阅读全文
摘要:
B. Igor and his way to work time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output B. Igor and 阅读全文
摘要:
D. Volatile Kite time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Volatile Kite time l 阅读全文
摘要:
C. Voltage Keepsake time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Voltage Keepsake 阅读全文
摘要:
B. Valued Keys time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You found a mysterious fu 阅读全文
摘要:
A. Vicious Keyboard time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Vicious Keyboard 阅读全文
摘要:
E. Exam Cheating time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Exam Cheating time l 阅读全文
摘要:
A. Buying A House 分别向左右枚举,找到符合题意的点,输出最短的长度*10。 #include <bits/stdc++.h> using namespace std; int n, k, s, a[105]; int main() { scanf("%d%d%d", &n, &s, 阅读全文