不需要算法也不会的ACM
eternityZZing
这个作者很懒,什么都没留下…
展开
-
UPC6605 所罗门王的宝藏
题目描述据古代传说记载,所罗门王既是智慧的代表,又是财富的象征。他建立了强大而富有的国家,聚集了大批的黄金象牙和钻石,并把这些价值连城的珍宝藏在一个神秘的地方,这就是世人瞩目的“所罗门王的宝藏”。多少个世纪以来,人们一直在寻找这批早已失落的古代文明宝藏,寻找盛产黄金和钻石的宝地。曾经追寻所罗门王宝藏的冒险者们都一去不回,至今没人解开这个谜题。亨利男爵在一次幸运的旅途中意外地得到了三百年前一位葡...原创 2018-07-31 10:23:01 · 275 阅读 · 0 评论 -
UPC6597 Don't Be a Subsequence(求最短子序列)
题目描述A subsequence of a string S is a string that can be obtained by deleting zero or more characters from S without changing the order of the remaining characters. For example, arc, artistic and (an...原创 2018-07-31 20:26:13 · 476 阅读 · 0 评论 -
UPC 6617 Finite Encyclopedia of Integer Sequences(找规律)
题目描述In Finite Encyclopedia of Integer Sequences (FEIS), all integer sequences of lengths between 1 and N (inclusive) consisting of integers between 1 and K (inclusive) are listed. Let the total num...原创 2018-08-05 19:45:21 · 176 阅读 · 0 评论 -
upc 9313 happy number
原题链接题意:如果经过题目中的循环能到达一,就是快乐数,否则,不是题解:太菜了,看到数据范围是1e9;就慌的一批,其实,中规中矩的算,不过循环9次,应该是秒答的题#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d", &n); int m = n; wh...原创 2018-10-04 19:36:24 · 134 阅读 · 0 评论