其他
偷吃了老鼠的土豆
戒骄戒躁,脚踏实地,坚持不懈,愈挫愈勇。
展开
-
c++检查IP地址是否合法
问题描述:给你一个IP地址,判断她是否合法;也就是说判断ip地址的每一个数都在[0,255];解题思路:思路1;从头开始扫描IP地址,将每一段都转换成数字,当遇到'.' 或者‘\n’的时候判断数字是否合法;代码如下:#include <iostream>#include <stdio.h>#include <stdlib.h>#include <string.h>using namespace std;int main原创 2020-09-20 16:31:46 · 1163 阅读 · 0 评论 -
Gym - 100187L
题目:StatementsAndrey works in the Ministry of Truth. His work is changing articles in newspapers and magazines so that they praise the Party and Big Brother.Recently Big Brother decided that it w...原创 2018-08-11 22:44:50 · 226 阅读 · 0 评论 -
Fliptile(反转问题状态压缩)poj 3279.
题目:Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M× N grid (1 ≤ M ≤ 15; 1 ≤ N ...原创 2018-08-12 21:04:07 · 180 阅读 · 0 评论 -
Odd Palindrome Gym - 101615A
题目:https://vjudge.net/problem/Gym-101615A只需要判断长度为偶数时,有没有回文串。#include <iostream>#include <stdio.h>#include <string.h>using namespace std;const int maxn = 105;int main()...原创 2018-08-30 00:14:44 · 182 阅读 · 0 评论 -
POJ--2463(物理题)-- 动能定理,弹性势能,重力势能
题目:http://poj.org/problem?id=2463 Once again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he ca...原创 2018-10-27 15:52:22 · 277 阅读 · 0 评论 -
HDU4519 郑厂长系列故事——体检 (模拟)
题目:HDU - 4519#include <iostream>using namespace std;int main(){ int T; int n,m,k; cin >> T; while(T --) { cin >> n >> k >> m; ...原创 2019-03-23 22:44:08 · 203 阅读 · 0 评论