摘要:
自幂数,也称Armstrong数,是指一个 n 位数,它的每个位上的数字的n 次幂之和等于它本身。 要求程序输入一个正整数m(m≤1000000),按照指定格式输出m以内所有的自幂数。 解答: #include<stdio.h> typedef long long ll; ll qpower(ll 阅读全文
摘要:
{{IGEM_TopBar}} {{OUC-R}} Welcome to iGEM 2021! Your team has been approved and you are ready to start the iGEM season! Before you start Please read t 阅读全文
摘要:
A. #include <bits/stdc++.h> using namespace std; typedef long long ll; int main () { ll k; cin >> k; ll x, y, p, q; cin >> x >> y >> p >> q; if(x == p 阅读全文
摘要:
A.一道模拟题 #include <bits/stdc++.h> using namespace std; typedef long long ll; int main () { int T; cin >> T; while(T--) { int n; cin >> n; std::vector<l 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int main () { int t; cin >> t; while(t--) { int n, k; cin >> n >> k; string s; cin >> s; if(k == 0) { cou 阅读全文