原创 Problem G. Interstellar Travel

該題涉及凸包問題,下面是有關凸包的博客 這裏寫鏈接內容 Problem G. Interstellar Travel Problem Description After trying hard for many years, Littl

原创 Graham Scan凸包算法

一:什麼是凸包 在一個二維座標系中,有若干點雜亂排列着,將最外層的點連接起來構成的凸多邊型,它能包含給定的所有的點,這個多邊形就是凸包。 尋找凸包的算法有很多種,Graham Scan 算法是一種十分簡單高效的二維凸包算法,能夠在

原创 Time Zone

Time Zone Problem Description Chiaki often participates in international competitive programming contests. The time zon

原创 Distinct Values

Distinct Values Problem Description Chiaki has an array of nn positive integers. You are told some facts about the arr

原创 Balanced Sequence

Balanced Sequence Problem Description Chiaki has nn strings s1,s2,…,sns1,s2,…,sn consisting of ‘(’ and ‘)’. A string

原创 Problem L. Visual Cube

Problem L. Visual Cube Problem Description Little Q likes solving math problems very much. Unluckily, however, he does

原创 字符流

一、stringstream C++標準庫中的<sstream>提供了比ANSI C的<stdio.h>更高級的一些功能,即單純性、類型安全和可擴展性。 首先要加入頭文件#include <sstream> istringstream /

原创 打籃球

鏈接:https://www.nowcoder.com/acm/contest/118/D 來源:牛客網 題目描述 1, 2, 3在打籃球, 可是二打一總是不公平的, 於是他們決定一對一,另一個人在邊上看着, 誰輸了誰就和下場和在邊上看

原创 Maximum Multiple

Maximum Multiple Problem Description Given an integer n, Chiaki would like to find three positive integers x, y and z s

原创 不容易系列一

本題鏈接 Problem Description 大家常常感慨,要做好一件事情真的不容易,確實,失敗比成功容易多了! 做好“一件”事情尚且不易,若想永遠成功而總從不失敗,那更是難上加難了,就像花錢總是比掙錢容易的道理一樣。 話雖這樣說

原创 PUBG

鏈接:https://www.nowcoder.com/acm/contest/118/A 來源:牛客網 題目描述 最近,喜愛ACM的PBY同學沉迷吃雞,無法自拔,於是又來到了熟悉的ERANGEL。經過一番搜尋,PBY同學準備動身前往安