JS-CSP2021-J 迷惑行为
不定期更 qwq。
#include<iostream>
using namespace std;
int main(){
freopen("network.in","r",stdin);
freopen("network.out","w",stdout);
int n,a,b,c,d,e;
cin>>a>>b>>c>>d>>e;
cout<<1<<endl;
cout<<"ERR"<<endl;
cout<<"FAIT"<<endl;
}
F A I T 人+c i n 自 动 忽 略 字 符 人+样 例 人
for(rp=1;rp<=n;rp++)
{
string t;
int a,b,c,d,e;
char fuck,ccf,shit,sb;
cin>>t>>a>>fuck>>b>>ccf>>c>>shit>>d>>sb>>e;
//cout<<t<<' '<<a<<' '<<b<<' '<<c<<' '<<d<<' '<<e<<' '<<endl;
if(t=="Server") fs(a,b,c,d,e);
else fc(a,b,c,d,e);
}
r p + + 人+不 会 s c a n f 人+祖 安 人
for(int j=1;j<cnt;j++){
if(al[j]==a && bl[j]==b && cl[j]==c && dl[j]==d && el[j]==e){
printf("FAIl\n");
f=false;
break;
}
}
F A I l 人
#include <bits/stdc++.h>
using namespace std;
string a[10001];
int main()
{
// freopen("network.in","r",stdin);
// freopen("network.out","w",stdout);
int n,k=1;
string p,m;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>p>>m;
if(p=="Server")
{
for(int i=1;i<=k;i++)
{
if(a[i]==m) continue;
}
a[k]==m;
k++;
}
if(p=="Client")
{
bool aa=0;
for(int i=1;i<=k;i++)
{
if(a[i]==m)
{
cout<<i;
aa=1;
}
}
if(aa==0)cout<<"FAIL";
}
}
return 0;
}
注 释 人
for(int i=1;i<=n;i++){
cin>>com[i].type>>com[i].address;
com[i].truth=judge_computer(com[i]);
if(com[i].truth){
int xn=0;
int ccccc=com[i].address.length()-1;
while(ccccc!=':'){
com[i].e+=(com[i].address[ccccc]-'0')*pow(10,xn);
xn++;ccccc--;
}
ccccc--;
xn=0;
while(ccccc!='.'){
com[i].d+=(com[i].address[ccccc]-'0')*pow(10,xn);
xn++;ccccc--;
}
ccccc--;
xn=0;
while(ccccc!='.'){
com[i].c+=(com[i].address[ccccc]-'0')*pow(10,xn);
xn++;ccccc--;
}
ccccc--;
xn=0;
while(ccccc!='.'){
com[i].b+=(com[i].address[ccccc]-'0')*pow(10,xn);
xn++;ccccc--;
}
ccccc--;
xn=0;
while(ccccc>0){
com[i].a+=(com[i].address[ccccc]-'0')*pow(10,xn);
xn++;ccccc--;
}
com[i].a+=(com[i].address[0]-'0')*pow(10,xn);
}
if(com[i].a>255||com[i].b>255||com[i].c>255||com[i].d>255||com[i].e>65535){
com[i].truth=false;
}
}
嘻 嘻 嘻 嘻 嘻
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("network.in","r",stdin);
freopen("network.out","w",stdout);
fclose(stdin);
fclose(stdout);
return 0;
}
不 会 也 要 充 数 人【附:这位同志 T3T4 都没写】
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("fruit.in","r",stdin);
freopen("fruit.out","w",stdout);
fclose(stdin);
fclose(stdout);
return 0;
}
不 会 也 要 充 数 人 * 2
#include<bits/stdc++.h>
using namespace std;
const int MAXN=100+10;
int main()
{
freopen("sort.in","r",stdin);
freopen("sort.out","w",stdout);
int n;
cin>>n;
string t,l;
for(int i=1;i<=0;i++)
{
cin>>t;
cin>>l;
}
cout<<t<<endl;
return 0;
}
瞎 写 人
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("network,in","r",stdin);
freopen("network.out","w",stdout);
cout<<"OK"<<"OK"<<"OK"<<"OK"<<"OK";
return 0;
}
瞎 写 人 * 2【附:而且 OK 没换行……】
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f,g,h,i,j,k,l,m;
int main(){
freopen("sort.in","r",stdin);
freopen("sort.out","w",stdout);
cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>k>>l>>m;
if(a==3&&b==4&&c==3&&d==2&&e==1&&f==2&&g==3&&h==1&&i==3&&j==2&&k==2&&l==2&&m==3)
cout<<1<<endl;
cout<<1<<endl;
cout<<2<<endl;
return 0;
}
样 例 人 * 2
for(int i=1;i<=n;i++){
int k=0,l=5;
bool b=true;
scanf("%s %d.%d.%d.%d:&d",a[i].a,a[i].b,a[i].c,a[i].d,a[i].e);
if(!(a[i].a<256&&a[i].b<256&&a[i].c<256&&a[i].d<256&&a[i].e<65536)){
printf("ERR");
continue;
}
...
}
s c a n f 没 有 地 址 人+不 输 入 字 符 串 人+数 字 没 有 下 界 人
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a[10000];
cin>>n;
return 0;
}
瞎 写 人 * 3+没 有 文 件 输 入 输 出 人【附:这位同志 T1 freopen 注释掉了,剩下三题压根没有 freopen……】
#include <bits/stdc++.h>
using namespace std;
int n;
string s1,s2;
int main() {
freopen("network.in","r",stdin);
freopen("network.out","w",stdout);
cin>>n;
for(int i=0;i<n;i++) {
cin>>s1>>s2;
cout<<"ERR"<<endl;
}
return 0;
}
E R R 人
#include<bits/stdc++.h>
using namespace std;
int n,ssssss,a[8005];
struct node{
int num,id;
}so[8005];
int cmd(node sss,node ssss){
return sss.num<ssss.num;
}
int main(){
freopen("sort.in","r",stdin);
freopen("sort.out","w",stdout);
cin>>n>>ssssss;
for(int i=1;i<=n;i++){
cin>>a[i];
so[i].num=a[i];
so[i].id=i;
}
...
s s s s s s s s s s s s s
#include <bits/stdc++.h>
using namespace std;
const int N = 1000 + 10;
int a[N];
void fre()
{
freopen("fruit.in", "r", stdin);
freopen("fruit.out", "w", stdout);
}
int main()
{
fre();
int n;
cin >> n;
for (int i = 1; i <= n; i ++ )
cin >> a[i];
for (int i = 1; i <= n; i ++ )
{
if (i == 1 || a[i] != a[i - 1])
{
cout << i << " ";
a[i] = -1;
}
}
cout << endl;
int t = 1;
for (int i = 1; i <= n; i ++ )
if (a[i] != -1) a[t ++ ] = a[i];
for (int i = 1; i <= t; i ++ )
{
if (i == 1 || a[i] != a[i - 1])
{
cout << i << " ";
a[i] = -1;
}
}
cout << endl;
int t = 1;
for (int i = 1; i <= n; i ++ )
if (a[i] != -1) a[t ++ ] = a[i];
for (int i = 1; i <= n; i ++ )
{
if (i == 1 || a[i] != a[i - 1])
{
cout << i << " ";
a[i] = -1;
}
}
return 0;
}
您 是 怎 么 做 到 8 8 8 B 的
#include<cstring>
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
long long n,l,r;
int main(){
freopen("candy.in","r",stdin);
freopen("candy.out","w",stdout);
scanf("%lld%lld%lld",&n,&l,&r);
if(r-l>=n-1){
printf("%lld",n-1);
return 0;
}
else{
long long maxx=0;
for(int i=l;i<=min(r,l+n-1);i++){
maxx=max(maxx,i%n);
}
printf("%lld",maxx);
}
return 0;
}
另 外 这 位 您 又 是 怎 么 做 到 4 4 4 B 的
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<-1;
return 0;
}
- 1 人
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"OK"<<endl;
return 0;
}
O K 这 就 给 你 抱 零【附:也是上面这位】
/*
CSP2021 rp++
visit me qwq: www.luogu.com.cn/user/****** (@************)
Friend link:
@SU********T @li******ve @Da******ele @h*******n @跳**子 (luogu)
*/
祝 福 人+宣 传 人+友 链 人
for(int k=1;k<=q;k++){
int x;
cin>>x;
if(x==1){
int s,s1;
scanf("%d",&s);
scanf("%d",&s1);
a[s]=s1;
for(int q=1;q<=n;q++) b[q]=a[q];
}
else{
int s;
scanf("%d",&s);
for(int i = 1; i <= n; i++){
for(int j = i; j>=2; j--){
if(b[j] < b[j-1]){
int t=b[j-1];
b[j-1]=b[j];
b[j]=t;
if(s==j) s--;
else if(s==j-1) s++;
}}}
printf("%d\n",s);
for(int q=1;q<=n;q++) b[q]=a[q];
}
}
逼 死 强 迫 症 人
bool check(string x){
int l=x.size(),sum=0;
int hh=65535;
int ll;
...
}
h h l l 人
map<pair<int,pair<int,pair<int,pair<int,int> > > >,bool>s;
map<pair<int,pair<int,pair<int,pair<int,int> > > >,int>si;
...
void fs(int a,int b,int c,int d,int e)
{
/*
if(s[t]) cout<<"FAIL"<<endl;
else if(!(t.find(':')!=string::npos&&t.find('.'!=string::npos))) cout<<"ERR"<<endl;
else if(!(t.find(':',t.find(':')+1)==string::npos&&
t.find(t.find('.')+1,'.')!=string::npos&&
t.find(t.find(t.find('.')+1,'.')+1,'.')!=string::npos&&
t.find(t.find(t.find('.')+1,'.')+1,'.')<t.find(':'))) cout<<"ERR"<<endl;*/
if(s[make_pair(a,make_pair(b,make_pair(c,make_pair(d,e))))]) puts("FAIL");
else if(!(a>=0&&a<=255&&b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255&&e>=0&&e<=65535)) puts("ERR");
else
{
puts("OK");
s[make_pair(a,make_pair(b,make_pair(c,make_pair(d,e))))]=true;
si[make_pair(a,make_pair(b,make_pair(c,make_pair(d,e))))]=rp;
}
}
void fc(int a,int b,int c,int d,int e)
{
if(!(a>=0&&a<=255&&b>=0&&b<=255&&c>=0&&c<=255&&d>=0&&d<=255&&e>=0&&e<=65535)) puts("ERR");
else if(s[make_pair(a,make_pair(b,make_pair(c,make_pair(d,e))))]) cout<<si[make_pair(a,make_pair(b,make_pair(c,make_pair(d,e))))]<<endl;
else puts("FAIL");
}
套 娃 人
struct sOrt {
int id;
long long num;
}aj[8010];
你 哪 怕 是 S o r t 甚 至 是 s o r t _ 也 不 至 于 是 s O r t 吧
struct az
{
bool tp;//1->Server,0->Client
int a,b,c,d,e;
bool lg;
bool lnk = 0;
}f[1001];
啊 这 人+洛 谷 人
//by gzc
#include<bits/stdc++.h>
using namespace std;
int i,j,k,l,r,m,n,x,zl,v,ans=0,q,p=0;
string xx,yy,aa[1005],bb[1005];
int main(){
...
}
留 名 人+x x y y a a b b
void cz1(int x,int v) {
a[x] = v;
b[x] = v;
return;
}
int cz2(int x) {
for(int i = 1;i <= n;i++) {
b[i] = a[i];
c[i] = i;
}
for (int i = 1; i <= n; i++)
for (int j = i; j >= 2; j--)
if ( b[j] < b[j - 1] ){
int t = b[j - 1];
b[j - 1] = b[j];
b[j] = t;
int t2 = c[j - 1];
c[j - 1] = c[j];
c[j] = t2;
}
cout<<endl;
for(int i = 1;i <= n;i++) {
if(b[i] == a[x] && x == c[i]) return i;
}
}
c z 被 迫 躺 枪
int main()
{
freopen("sort.in","r",stdin);
freopen("sort.out","w",stdout);
cin>>n>>q;
for(int i=1;i<=n;i++)
{
scanf("%d",&a[i].num);
a[i].id=i;
}
//paixu
...
for(int k=1;k<=q;k++)
{
int m;
scanf("%d",&m);
if(m==1)
{
...
}
else if(m==2)
{
int y;
scanf("%d",&y);
//paixu
...
}
}
return 0;
}
拼 音 邪 教
bool isnum(char a)
{
return '0'<=a&&a<='9';
}
有 现 成 的 isdigit() 你 不 用 硬 要 自 己 写
k3=f[i].ad.find(':');
sd=f[i].ad.substr(k2,k3-k2);
f[i].ad.erase(k3,1);
3 k 被 迫 躺 枪
int check_pl(string s,int a,int b,int c,int d,int e,string fr){
if (a>255||a<0||b>255||b<0||c>255||c<0||d>255||d<0||e>65535||e<0){
return 1003;
}
if (s=="Server"){
for (int i=1;i<=n;i++){
if (g[i].op=="Server"&&g[i].ad==fr) return 1002;
}
return 1001;
}
if (s=="Client"){
for (int i=1;i<=n;i++){
if (g[i].op=="Client"&&g[i].ad==fr) return i;
}
return 1003;
}
}
小 伙 子 你 搁 这 标 题 目 编 号 呢
#define MAXN 8000
struct Node {
int data, x; // x 璁板綍鍘熶綅缃?
} b[MAXN + 5];
int n, q, a[MAXN + 5];
我 很 想 知 道 你 注 释 了 什 么 东 西
int js2=0,js=0;
我 们 都 是 j s 人
#include<bits/stdc++.h>
#define il inline
#define re register
using namespace std;
int n,cnt;
string st1,st2;
struct jq{
int id;
int a;
int b;
int c;
int d;
int e;
}a[2000];
il bool pd(jq aa,jq bb){
if(aa.a==bb.a&&aa.b==bb.b&&aa.c==bb.c&&aa.d==bb.d&&aa.e==bb.e)return true;
else return false;
}
int main(){
freopen("network.in","r",stdin);
freopen("network.out","w",stdout);
int n;
scanf("%d",&n);
for(re int i=1;i<=n;i=i+1){
cin>>st1;
cin>>st2;
int tc=1;
jq tstr={-1,-1,-1,-1,-1};
bool f=true,qd0a=true,qd0b=true,qd0c=true,qd0d=true,qd0e=true;
for(re int j=0;j<st2.size();j=j+1){
if(st2[j]>='0'&&st2[j]<='9'){
if(tc==1){
if(tstr.a==-1&&st2[j]=='0'){
qd0a=false;
}
else{
if(tstr.a==-1)tstr.a=0;
else tstr.a=tstr.a*10+(st2[j]-'0');
}
}
if(tc==2){
if(tstr.b==-1&&st2[j]=='0'){
qd0b=false;
}
else{
if(tstr.b==-1)tstr.b=0;
else tstr.b=tstr.b*10+(st2[j]-'0');
}
}
if(tc==3){
if(tstr.c==-1&&st2[j]=='0'){
qd0c=false;
}
else{
if(tstr.c==-1)tstr.c=0;
else tstr.c=tstr.c*10+(st2[j]-'0');
}
}
if(tc==4){
if(tstr.d==-1&&st2[j]=='0'){
qd0d=false;
}
else{
if(tstr.d==-1)tstr.d=0;
else tstr.d=tstr.d*10+(st2[j]-'0');
}
}
if(tc==5){
if(tstr.e==-1&&st2[j]=='0'){
qd0e=false;
}
else{
if(tstr.e==-1)tstr.e=0;
else tstr.e=tstr.e*10+(st2[j]-'0');
}
}
}
else{
if(st2[j]=='.'){
if(tc==1||tc==2||tc==3)tc++;
else{
f=false;
break;
}
}
else{
if(st2[j]==':'){
if(tc==4)tc++;
else{
f=false;
break;
}
}
else{
f=false;
break;
}
}
}
}
if(tstr.a>255||tstr.b>255||tstr.c>255||tstr.d>255||tstr.e>65535||tstr.a<0||tstr.b<0||tstr.c<0||tstr.d<0||tstr.e<0)f=false;
if(tstr.a!=-1&&qd0a==false||tstr.b!=-1&&qd0b==false||tstr.c!=-1&&qd0c==false||tstr.d!=-1&&qd0d==false||tstr.e!=-1&&qd0e==false)f=false;
if(f==false){
printf("%s\n","ERR");
continue;
}
if(st1=="Server"){
f=true;
for(re int j=1;j<=cnt;j=j+1){
if(pd(tstr,a[j])==true){
printf("%s\n","FAIL");
f=false;
break;
}
}
if(f==true){
printf("%s\n","OK");
cnt++;
a[cnt]=tstr;
a[cnt].id=i;
}
}
else{
f=false;
for(re int j=1;j<=cnt;j=j+1){
if(pd(tstr,a[j])==true){
printf("%d\n",a[j].id);
f=true;
}
}
if(f==false)printf("%s\n","FAIL");
}
}
return 0;
}
/*一个符合规范的地址串应当具有以下特征:
1、必须形如 a.b.c.d:e 的格式,其中 a,b,c,d,e 均为非负整数;
2、0 ≤ a,b,c,d ≤ 255,0 ≤ e ≤ 65535;
3、a,b,c,d,e 均不能含有多余的前导 0。
相应地,不符合规范的地址串可能具有以下特征:
1、不是形如 a.b.c.d:e 格式的字符串,例如含有多于 3 个字符 . 或多于 1 个字
符 : 等情况;
2、整数 a,b,c,d,e 中某一个或多个超出上述范围;
3、整数 a,b,c,d,e 中某一个或多个含有多余的前导 0 。*/
肝 帝+说 明 人
struct abc {
int v=0,k=0;
} b[10000];
a b c
else cout<<"ERR"<<endl;// next nowork
n o w o r k
bool fft = 0;
for(int j=st;j<i;++j){
if(!fft&&s[j]=='0'){
//cout << "a" << endl;
return 0;
}
if(s[j]!='0') fft = 1;
d = d * 10 + (s[j]-'0');
}
if(id>=1&&id<=4){
if(d<0||d>255){
//cout << "b" << endl;
return 0;
}
}
else if(id==5){
if(d<0||d>65535) return 0;
}
st = i;
flag = 1;
f f t 人
/*#include<bits/stdc++.h>
using namespace std;
struct st
{
int zl,sl,he,ta,next,last;
};
st a[100005];
int tail=1,n;
int main()
{
//freopen("","r",stdin);
//freopen("","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
cin>>n;
int x;
cin>>x;
a[1].zl=x,a[1].sl=1,a[1].he=1,a[1].ta=1;
for(int i=2;i<=n;i++)
{
cin>>x;
if(x==a[tail].zl)
a[tail].sl++,a[tail].ta++;
if(x!=a[tail].zl)
tail++,a[tail].zl=x,a[tail].sl=1,a[tail].he=i,a[tail].ta=i,a[tail-1].next=i;
}
a[tail].next=1,a[1].last=tail;
int i=1;
while(tail>0)
{
cout<<a[i].he<<' ';
if(i==tail)
cout<<endl;
if(a[i].sl=1)
a[a[i].last].next=a[i].next,tail--;
else
a[a[i].last].sl--;
i=a[i].next;
if(i==tail)
cout<<endl;
}
return 0;
}*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("fruit.in","r",stdin);
freopen("fruit.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
int n,a[100000];
cin>>n;
for(int i=1;i<=n;i++)
cin>>a[n];
if(n==12)
cout<<"1 3 5 8 9 11"<<endl<<"2 4 6 12"<<endl<<"7"<<endl<<"10"<<endl;
if(n==20)
cout<<"1 5 8 11 13 14 15 17"<<endl<<"2 6 9 12 16 18"<<endl<<"3 7 10 19"<<endl<<"4 20"<<endl;
if(n==1000)
{
cout<<"1 3 5 6 11 18 19 20 21 22 24 25 27 28 30 32 33 34 35 36 37 40 41 43 44 46 47 50 51 52 54 60 62 63 72 73 74 75 78 80 81 83 89 90 92 93 94 96 99 104 107 108 109 110 111 113 116 120 123 124 125 128 129 130 133 134 137 148 149 150 155 156 158 159 160 161 162 163 164 165 166 169 171 172 176 177 178 179 181 182 183 185 189 191 192 193 194 197 198 200 201 202 203 205 206 208 210 211 214 216 217 223 224 225 232 234 235 237 242 243 244 245 246 248 250 251 254 255 259 262 265 266 268 272 274 276 279 282 283 287 288 289 290 291 293 295 297 298 299 301 302 303 305 307 308 310 311 312 314 318 319 323 324 328 330 331 333 334 336 337 338 339 340 345 348 350 351 352 355 356 359 362 363 364 366 367 368 370 373 375 376 377 381 383 384 385 386 388 394 396 397 399 400 402 403 404 406 407 409 411 412 416 417 418 419 422 423 427 433 434 435 436 439 442 444 446 449 450 451 453 457 458 460 462 465 466 468 469 472 473 474 475 476 478 480 481 483 486 487 490 491 492 495 496 497 501 507 512 516 517 518 519 520 521 522 523 525 528 530 532 533 534 535 536 537 540 543 544 545 546 547 548 549 550 553 555 558 559 560 565 567 568 569 570 571 578 580 582 587 589 590 596 597 598 599 600 602 608 611 613 615 618 619 620 622 623 624 625 627 628 629 633 635 637 640 641 642 643 644 646 649 650 652 655 657 658 659 661 662 664 665 666 669 671 672 673 674 678 680 682 683 688 689 690 691 696 698 699 700 701 703 704 705 706 709 711 712 715 716 717 718 720 723 726 730 734 736 737 739 740 741 744 747 748 749 752 753 754 755 756 759 761 764 765 766 771 772 775 776 778 779 785 789 790 795 797 800 801 802 804 805 806 807 809 811 814 816 817 819 824 826 827 829 831 837 839 840 841 843 846 848 849 856 859 860 864 869 871 875 876 877 878 879 880 883 886 892 894 895 896 897 899 900 902 904 905 908 911 912 913 914 919 921 923 924 925 927 928 929 930 932 939 941 942 943 947 948 949 953 954 958 963 965 966 967 968 970 972 973 974 975 977 981 983 984 989 990 991 992 993 995 997 1000"<<endl;
cout<<"2 4 12 23 31 53 55 61 79 84 95 97 100 105 112 114 117 121 126 131 138 151 167 170 184 186 190 209 215 226 233 238 247 249 260 263 269 273 275 277 280 292 294 296 300 304 306 313 315 329 341 346 349 353 360 365 369 371 374 378 382 389 395 405 410 428 440 443 445 447 452 454 461 463 477 479 484 493 498 502 508 513 526 529 531 541 554 556 561 566 572 579 581 583 588 601 603 609 612 614 616 621 630 634 636 638 645 647 653 656 660 667 670 679 681 697 710 721 724 727 731 735 742 745 750 757 760 762 767 786 796 798 803 810 812 815 820 825 830 832 838 842 844 847 857 865 870 872 884 887 893 903 909 920 922 926 933 940 944 950 959 964 971 978 982 994 996 998"<<endl;
cout<<"7 13 26 38 64 82 85 101 106 118 122 127 132 139 152 168 173 195 212 218 227 236 239 261 264 270 278 281 332 342 347 361 372 387 390 398 408 413 429 441 448 485 494 499 503 509 514 527 542 562 584 591 610 617 626 631 639 654 668 675 702 713 722 725 728 732 738 743 746 751 758 768 787 808 818 821 828 845 850 858 866 885 888 898 906 910 931 934 951 960 969 976 979 985 999"<<endl;
cout<<"8 14 29 39 65 102 115 119 135 140 153 196 213 219 228 271 335 343 354 401 430 488 504 510 515 538 551 563 585 592 648 663 707 714 729 733 763 769 788 813 833 861 867 901 907 915 952 961 980 986"<<endl;
cout<<"9 15 66 103 136 141 154 199 229 284 357 414 431 489 505 511 524 539 552 564 586 593 651 676 708 719 791 822 834 862 868 916 955 962"<<endl;
cout<<"10 16 67 142 157 204 230 285 358 415 432 500 506 573 792 823 835 863 873 917 956 987"<<endl;
cout<<"17 68 143 174 207 231 286 379 420 437 574 793 918 957 988"<<endl;
cout<<"42 69 144 175 220 240 309 380 421 438 575 794 935"<<endl;
cout<<"45 70 145 180 221 241 316 391 424 455 576 799 936"<<endl;
cout<<"48 71 146 187 222 252 317 392 425 456 577 836 937"<<endl;
cout<<"49 76 147 188 320 393 426 459 594 851 938"<<endl;
cout<<"56 77 321 464 595 852 945"<<endl;
cout<<"57 86 322 467 604 853 946"<<endl;
cout<<"58 87 325 470 605 854"<<endl;
cout<<"59 88 326 471 606 855"<<endl;
cout<<"91 327 482 607 874"<<endl;
cout<<"98 344 557 632 881"<<endl;
cout<<"253 677 882"<<endl;
cout<<"256 684 889"<<endl;
cout<<"257 685 890"<<endl;
cout<<"258 686 891"<<endl;
cout<<"267 687"<<endl;
cout<<"692"<<endl;
cout<<"693"<<endl;
cout<<"694"<<endl;
cout<<"695"<<endl;
cout<<"770"<<endl;
cout<<"773"<<endl;
cout<<"774"<<endl<<"777"<<endl<<"780"<<endl<<"781"<<endl<<"782"<<endl;
}
return 0;
}
打 表 人+大 注 释 人+猜 数 据 人
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,L,R,k,a[100],max=0,c=0;
cin>>n>>L>>R;
for(k=L;k<=R;k++)
{
if(k>=n)
{
c=k;
c-=n;
return 0;
}
else
{
for(int i=0;i<100;i++)
{
a[i]=c;
if(a[i]>max)
{
max=a[i];
}
}
}
}
cout<<max<<endl;
return 0;
}
写 了 3 . 5 h 只 为 第 一 题
for(int i=1;i<=n;++i)//KaChang can let me happy.
{
...
}
无 用 之 卡 常