
HDU
xynldr
梦想是注定孤独的旅程。
展开
-
HDU 1164
题目链接说白了就是一个分解质因数相比于自己之前写的,感觉这个清爽无比~#include using namespace std;int main(){ int x,i; while(cin >> x) { i = 2; while(1) { if(i == x) { cout<<x<<endl; break; } if(原创 2017-11-01 21:27:16 · 257 阅读 · 0 评论 -
HDU 1016
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the number原创 2017-10-23 22:09:23 · 152 阅读 · 0 评论 -
HDU 1241 Oil Deposits
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th原创 2017-10-23 22:19:06 · 169 阅读 · 0 评论