- 博客(5)
- 收藏
- 关注
原创 HDU 1029 map水题。STL模板题
#include <bits/stdc++.h>using namespace std;map<int,int>m; map<int,int>::iterator it;int main(){ int n; int a; while(cin>>n) { m.clear(); ...
2018-08-27 16:31:12 401
原创 山科大2018期末OJ 最简分式
感觉大家光看输入输出就能知道题意考试前一天晚上刚看了最大公约数和最小公倍数,第二天接着打脸,日了。。。。。#include <stdio.h>#include <stdlib.h>int wu(int n,int m){ int temp,r; //把大的数放在n里面 if(n<m) { temp=n; ...
2018-02-22 15:42:46 670
原创 山科大OJ 十六进制转二进制
为了广大cv同道中人,题目我也剪切过来s当时一直不明白那些十六进制二进制八进制等等,考试直接跳过的题目,寒假查资料才知道这题算是最水的之一#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char s[105]; while(~scanf("%s",s)...
2018-02-22 15:40:24 462
原创 山科大2018期末OJ 递归的字符串回文 (Append Code)
当时当时在考场上不知道自己到底在干什么,再看到这个题的时候感觉自己玩了半年,当时竟然读了一遍就跳过了。。。。。。#include <stdio.h>#include <stdlib.h>#define MAX_STR_LEN 105int palindrome (char s[], int begin, int end){ if(s[begin]==s[e...
2018-02-22 15:37:23 895 1
原创 山科大2018期末OJ 几点几分几秒 (Append Code)
大一上学期为了找了一个学期的对象,结果对象没找到,学业也荒废了。。。。。。把期末没考虑出来的题目现在发一下,这是一个很简单的结构体#include <stdio.h>#include <stdlib.h>struct time{ int hh; // 时 int mm; // 分 int ss; //秒}time;struct time...
2018-02-22 15:34:02 1418
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人