欢乐纪中某B组赛【2019.1.18】
生活随笔
收集整理的這篇文章主要介紹了
欢乐纪中某B组赛【2019.1.18】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
新年新氣象,我們又一度迎來新一年的模擬賽(誰想迎來)
總之,有來到了熟悉的地方——紀中。
成績
RankRankRank是有算別人的
| 222 | 2017myself2017myself2017myself | 300300300 | 100100100 | 100100100 | 100100100 | 000 |
| 444 | 2017zyc2017zyc2017zyc | 270270270 | 100100100 | 100100100 | 707070 | 000 |
| 555 | 2017xxy2017xxy2017xxy | 260260260 | 100100100 | 100100100 | 555555 | 555 |
| 666 | 2017xjq2017xjq2017xjq | 240240240 | 100100100 | 100100100 | 404040 | 000 |
| 888 | 2017lrz2017lrz2017lrz | 205205205 | 100100100 | 100100100 | 555 | 000 |
| 101010 | 2017hzb2017hzb2017hzb | 200200200 | 100100100 | 100100100 | 000 | 000 |
| 191919 | 2017hjq2017hjq2017hjq | 160160160 | 100100100 | 606060 | 000 | 000 |
| 313131 | 2017lw2017lw2017lw | 100100100 | 100100100 | 000 | 000 | 000 |
正題
T1:P1313,jzoj3027?T1:P1313,jzoj3027-T1:P1313,jzoj3027?計算系數【組合數,二項式定理】
之前做過,就直接放了
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/82502479
T2:P1311,jzoj3025?T2:P1311,jzoj3025-T2:P1311,jzoj3025?選擇客棧【統計】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/86540567
T3:P1314,jzoj3028?T3:P1314,jzoj3028-T3:P1314,jzoj3028?聰明的質監員【二分答案,,,前綴和】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/86540688
T4:P1315,jzoj3029?T4:P1315,jzoj3029-T4:P1315,jzoj3029?觀光公交【費用流】
博客鏈接:
https://blog.csdn.net/Mr_wuyongcong/article/details/86541082
someofcodesome\ of\ codesome?of?code
T2 隨機數據
#include<cstdio> #include<cstdlib> #include<ctime> #define random(x) rand()%x using namespace std; int main() {srand(time(0));//freopen("data.in","w",stdout);printf("10 3 %d\n",random(10));for(int i=1;i<=10;i++)printf("%d %d\n",random(3),random(10)); }T2 60分暴力
#include<cstdio> #include<cctype> #define ll long long using namespace std; int read() {int x=0,f=1; char c=getchar();while(!isdigit(c)) {if(c=='-')f=-f;c=getchar();}while(isdigit(c)) x=(x<<1)+(x<<3)+c-48,c=getchar();return x*f; } void print(int x){if (x>9) print(x/10); putchar(x%10+48); return; } ll n,k,p,color[5000],cost[5000],ans; int main() {freopen("data.in","r",stdin);freopen("data.ans","w",stdout);n=read();k=read();p=read();for(ll i=1;i<=n;i++){color[i]=read();cost[i]=read();}for(int i=1;i<=n;i++)for(int j=i+1;j<=n;j++){if(color[i]==color[j]){for(int k=i;k<=j;k++)if(cost[k]<=p){ans++;break;}}}print(ans); }T2 對拍
#include<windows.h> #include<cstdio> using namespace std; int main() {while(1){system("data.exe");system("BL.exe");system("T2.exe");if(!system("fc data.ans data.out"))printf("AC\n");else{printf("WA\n");break;}} }尾聲
猩新年快樂
總結
以上是生活随笔為你收集整理的欢乐纪中某B组赛【2019.1.18】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: P1315,jzoj3029-观光公交【
- 下一篇: 公开汉中面皮调料配方