avatar
NSC今天似乎又没动静了# Immigration - 落地生根
g*r
1
Returns the next integer a in the arithmetic sequence of integers where
* a = m^n, m > 1 n > 1, and m and n are both integers
* Thus, the first few outputs will be 4, 8, 9, 16, 25, 27, 32, 36, etc
avatar
u*e
2
昨天有绿的,有rfe的,今天又玩藏猫猫了? 很久以前他们是周一周五工作,然后变成
周一周二,上个周就没啥动静,这个周只有周一,今天似乎没啥事了。
等得很无奈。
avatar
s*g
3
我的一个解法:
unsigned long calc(unsigned m, unsigned n) {
if(m < 2 || m < 2) return 0;
unsigned long ret = m;
for(unsigned i = 1; i < n; ++i)
ret *= m;
return ret;
}
unsigned findNext2(unsigned val) {
unsigned long ret = INT_MAX;
unsigned smallest = 0;
unsigned sum = 4;
while(smallest <= val) {
unsigned n = 2;
for(unsigned i = n; i <= sum-2; ++i) {
unsigned long result = calc(sum-i, i);
if(i == 2) smallest = result;
if(result > val) ret = min(ret, result);
if(result > val) break;
}
for(unsigned i = n; i <= sum-2; ++i) {
unsigned long result = calc(i, sum-i);
if(result > val) ret = min(ret, result);
if(result > val) break;
}
++sum;
}
return ret;
}

【在 g********r 的大作中提到】
: Returns the next integer a in the arithmetic sequence of integers where
: * a = m^n, m > 1 n > 1, and m and n are both integers
: * Thus, the first few outputs will be 4, 8, 9, 16, 25, 27, 32, 36, etc

avatar
I*1
4
mine was actually rfed on Last Friday. so I guess they work hard on every
Fridays?

【在 u***e 的大作中提到】
: 昨天有绿的,有rfe的,今天又玩藏猫猫了? 很久以前他们是周一周五工作,然后变成
: 周一周二,上个周就没啥动静,这个周只有周一,今天似乎没啥事了。
: 等得很无奈。

avatar
r*7
5
应该用binary search来解吧

【在 s*******g 的大作中提到】
: 我的一个解法:
: unsigned long calc(unsigned m, unsigned n) {
: if(m < 2 || m < 2) return 0;
: unsigned long ret = m;
: for(unsigned i = 1; i < n; ++i)
: ret *= m;
: return ret;
: }
: unsigned findNext2(unsigned val) {
: unsigned long ret = INT_MAX;

avatar
u*e
6
that explained why there is not much for today.
i should come this Friday then..

every

【在 I*1 的大作中提到】
: mine was actually rfed on Last Friday. so I guess they work hard on every
: Fridays?

avatar
L*0
8
my case still can not be found! How about you?

【在 u***e 的大作中提到】
: 昨天有绿的,有rfe的,今天又玩藏猫猫了? 很久以前他们是周一周五工作,然后变成
: 周一周二,上个周就没啥动静,这个周只有周一,今天似乎没啥事了。
: 等得很无奈。

avatar
u*e
9
same here, 485 case can not be found. But 131/765 changed after approval.

【在 L*******0 的大作中提到】
: my case still can not be found! How about you?
avatar
M*1
10
Bless
avatar
s*i
11
Bless
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。