摘要:
package asda; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()) { ... 阅读全文
摘要:
#include #include using namespace std; int sum; int f(int n,char a,char b,char c){ if(n == 1){printf("1 from a to b\n");sum++;return sum;} else { f(n-1,a,c,b); printf("%d fro... 阅读全文
摘要:
#include<iostream>#include<string>using namespace std;int main(){ string str; while(true) { getline(cin, str); if(cin.eof()) break; int index; while(t 阅读全文
摘要:
D的小L 时间限制:4000 ms | 内存限制:65535 KB 难度:2 D的小L 时间限制:4000 ms | 内存限制:65535 KB 难度:2 阅读全文
摘要:
笨蛋难题四 时间限制:1000 ms | 内存限制:65535 KB 难度:3 笨蛋难题四 时间限制:1000 ms | 内存限制:65535 KB 难度:3 这些日子笨蛋一直研究股票,经过调研,终于发现xxx公司股票规律,更可喜的是 笨蛋推算出这家公司每天的股价,为了防止别人发现他的秘密。他决定对 阅读全文
摘要:
zb的生日 时间限制:3000 ms | 内存限制:65535 KB 难度:2 zb的生日 时间限制:3000 ms | 内存限制:65535 KB 难度:2 阅读全文
摘要:
郁闷的C小加(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 郁闷的C小加(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:4 聪明的你帮助C小加解决了中缀表达式到后缀表达式的转换(详情请参考“郁闷的C小加(一)”),C小加很高兴。但C小加是个爱思考的 阅读全文
摘要:
求逆序数 时间限制:2000 ms | 内存限制:65535 KB 难度:5 在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。 现在,给你一个N个元素的序列,请你判断出它的逆序数是多少。 比如 1 3 2 阅读全文
摘要:
括号配对问题 时间限制:3000 ms | 内存限制:65535 KB 难度:3 阅读全文
该文被密码保护。 阅读全文