- 七中菁才C2025级语法测试2——“一码当先”杯
讨论
- @ 2026-1-10 8:27:46
考试答案
48 条评论
-
高朗 LV 3 @ 2026-1-10 11:03:13787878
-
@ 2026-1-10 10:58:54
PK PK
-
@ 2026-1-10 10:53:15
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n=1) { cout<<"1"<<endl<<"1"; } if(n=2) { cout<<"1"<<endl<<"121"<<endl<<"1"; } if(n=3) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=4) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=5) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"123454321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=6) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"123454321"<<endl<<"12345654321"<<endl<<"123454321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=7) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"123454321"<<endl<<"12345654321"<<endl<<"1234567654321"<<endl<<"12345654321"<<endl<<"123454321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=8) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"123454321"<<endl<<"12345654321"<<endl<<"1234567654321"<<endl<<"123456787654321"<<endl<<"1234567654321"<<endl<<"12345654321"<<endl<<"123454321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } if(n=9) { cout<<"1"<<endl<<"121"<<endl<<"12321"<<endl<<"1234321"<<endl<<"123454321"<<endl<<"12345654321"<<endl<<"1234567654321"<<endl<<"123456787654321"<<endl<<"12345678987654321"<<endl<<"123456787654321"<<endl<<"1234567654321"<<endl<<"12345654321"<<endl<<"123454321"<<endl<<"1234321"<<endl<<"12321"<<endl<<"121"<<endl<<"1"; } } 手搓
-
@ 2026-1-10 10:50:35六六六
-
@ 2026-1-10 10:37:49#include<bits/stdc++.h> using namespace std; int main(){ long long n,q,w,e; cin>>n; q=n/5; w=(n-(5q))/2; e=(n-(2w)-(5*q))/1; cout<<e+q+w; }
🤡 3 -
@ 2026-1-10 10:37:30#include<bits/stdc++.h> using namespace std; int main(){ long long n,q,w,e; cin>>n; q=n/5; w=(n-(5q))/2; e=(n-(2w)-(5*q))/1; cout<<e+q+w; }
-
@ 2026-1-10 10:16:41
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,S=0,tot=0,Z=0; cin>>n; for(int i=1;i<=n;i++){ cin>>x; if( x1 ){ S++; }
if( x2 ){ tot++; } if( x==3 ){ Z++; }} if( S>Z && S>tot || Z>tot && Z<S ){ cout<<Z+tot; } if( Z>S && Z>tot || S>tot && S<Z ){ cout<<S+tot; } if( tot>S && tot>Z || S>Z && S<tot ){ cout<<S+Z; } if( tot==S && tot>Z || tot==Z && tot>S || Z==S &&S>tot ){ cout<<tot+Z; } return 0;}
-
@ 2026-1-10 8:42:55悄咪咪地串通
👎 4👍 1 -
@ 2026-1-10 8:42:00等会都串通一下哈
👎 4👍 1 -
@ 2026-1-10 8:41:28よし
-
@ 2026-1-10 8:34:29请不要哟西
-
@ 2026-1-10 8:34:12哟西
-
@ 2026-1-10 8:34:10哟西
-
@ 2026-1-10 8:34:08哟西
-
@ 2026-1-10 8:34:06哟西
-
@ 2026-1-10 8:34:04哟西
-
@ 2026-1-10 8:34:03哟西
-
@ 2026-1-10 8:34:01哟西
-
@ 2026-1-10 8:33:59小明的计算机这么难的代码说编就编
-
@ 2026-1-10 8:33:59哟西
-
@ 2026-1-10 8:33:57哟西
-
@ 2026-1-10 8:33:53哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西哟西
-
@ 2026-1-10 8:33:41哟西
-
@ 2026-1-10 8:33:36哟西
-
@ 2026-1-10 8:33:34哟西
-
@ 2026-1-10 8:33:11李纯姚不愧是Lv10,代码就是牛逼
-
@ 2026-1-10 8:32:35哟西
-
@ 2026-1-10 8:32:33哟西
-
@ 2026-1-10 8:32:31哟西
-
@ 2026-1-10 8:32:26哟西
-
@ 2026-1-10 8:32:09哟西
-
@ 2026-1-10 8:32:07哟西
-
@ 2026-1-10 8:32:05哟西
-
@ 2026-1-10 8:32:03哟西
-
@ 2026-1-10 8:31:59哟西
-
@ 2026-1-10 8:31:57哟西
-
@ 2026-1-10 8:31:54哟西
-
@ 2026-1-10 8:31:50哟西
-
@ 2026-1-10 8:31:44哟西
-
@ 2026-1-10 8:31:09小明的计算器: #include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a+b; return 0; }
-
@ 2026-1-10 8:30:51自取头文件,附带常用变量,免费: #include<bits/stdc++.h> using namespace std; long long n,m,a,b,c,k,t; double h,l; int main()
-
@ 2026-1-10 8:30:28给你说一道题的答案
-
@ 2026-1-10 8:29:48吗吧v发布如果van后面差别 你们从的能够和你复婚酒囊饭袋,撒的v让我给v你大,卖家您好v能否,吗你少给我呢v。 他额。没看日本旅客就,,家呢,美女吧, 不能,2
-
@ 2026-1-10 8:29:41偶多桑
-
@ 2026-1-10 8:29:31你滴,大大滴良民
-
@ 2026-1-10 8:29:13有
-
@ 2026-1-10 8:29:07哟西
-
@ 2026-1-10 8:28:01有人吗
- 1