U96340 AC机

    • 1.6K提交
    • 551通过
    • 304排名
  • 用户 ID96340
  • 用户类型 普通用户
  • 注册时间 2018-04-10 20:42

博客

通过题目

[P1000] [P1001] [P1002] [P2170] [P1003] [P1004] [P1007] [P3187] [P1008] [P1009] [P1010] [P1666] [P1012] [P1384] [P1018] [P1020] [P1025] [P1143] [P1028] [P1556] [P1029] [P1597] [P1030] [P1031] [P1035] [P1040] [P1044] [P1046] [P1047] [P1048] [P2926] [P1049] [P1055] [P1057] [P1059] [P1060] [P1068] [P1641] [P1075] [P1076] [P1171] [P1077] [P2600] [P1079] [P1083] [P1085] [P3224] [P1087] [P1089] [P1090] [P2364] [P1091] [P3338] [P1093] [P1094] [P1095] [P3482] [P1096] [P1097] [P1100] [P1101] [P1102] [P1104] [P1738] [P1109] [P1111] [P1115] [P1116] [P1119] [P1125] [P1135] [P1067] [P1137] [P1138] [P1143] [P1145] [P1131] [P1147] [P1112] [P1149] [P1150] [P1151] [P2673] [P1152] [P2122] [P1157] [P1161] [P1162] [P1164] [P3474] [P1168] [P1864] [P1177] [P2198] [P1179] [P1190] [P1192] [P2839] [P1196] [P1440] [P1199] [P1200] [P2742] [P1216] [P1217] [P1219] [P1223] [P1226] [P1230] [P1308] [P1233] [P3196] [P1255] [P1259] [P1296] [P1303] [P1304] [P1844] [P1305] [P1307] [P1792] [P1308] [P1309] [P2918] [P1311] [P2172] [P1313] [P1314] [P1315] [P1317] [P2429] [P1328] [P1334] [P1716] [P1339] [P1348] [P1372] [P2293] [P1375] [P1921] [P1420] [P1421] [P1235] [P1422] [P2518] [P1423] [P1200] [P1425] [P1235] [P1426] [P1427] [P1428] [P1439] [P1451] [P1357] [P1460] [P1464] [P1469] [P1478] [P1480] [P1507] [P1644] [P1522] [P1525] [P1534] [P1535] [P1536] [P1540] [P3446] [P1546] [P1547] [P1550] [P1551] [P1553] [P3047] [P1554] [P1563] [P1567] [P1571] [P1576] [P2485] [P1579] [P1640] [P1583] [P1589] [P1019] [P1590] [P1591] [P2919] [P1595] [P1598] [P1601] [P1017] [P1614] [P1483] [P1615] [P2364] [P1616] [P1618] [P1626] [P1628] [P2161] [P1634] [P2066] [P1678] [P1679] [P1691] [P1706] [P1716] [P1720] [P1731] [P3054] [P1734] [P1739] [P1746] [P1747] [P2259] [P1755] [P1757] [P3420] [P1760] [P1493] [P1765] [P1861] [P1774] [P1781] [P1795] [P3431] [P1802] [P1807] [P1808] [P1824] [P1828] [P1337] [P1832] [P1838] [P1843] [P2835] [P1851] [P1862] [P1865] [P1866] [P1876] [P1887] [P2530] [P1888] [P1577] [P1889] [P1890] [P1892] [P1896] [P1243] [P1897] [P1908] [P1909] [P1910] [P1232] [P1914] [P1919] [P1932] [P1965] [P1969] [P1980] [P1981] [P1709] [P1984] [P1996] [P2005] [P1026] [P2014] [P2015] [P2024] [P2058] [P3398] [P2066] [P2078] [P2084] [P2118] [P2126] [P1700] [P2128] [P2141] [P2142] [P2181] [P1748] [P2196] [P2239] [P1115] [P2256] [P2299] [P3415] [P2309] [P1093] [P2320] [P2711] [P2330] [P2368] [P2369] [P3410] [P2384] [P2388] [P2543] [P2550] [P2538] [P2563] [P3058] [P2602] [P2615] [P2626] [P3333] [P2639] [P2657] [P2669] [P3249] [P2670] [P2676] [P2683] [P2690] [P2695] [P3105] [P2722] [P1753] [P2777] [P2250] [P2782] [P1206] [P2788] [P2309] [P2799] [P2801] [P3023] [P2818] [P2822] [P1650] [P2837] [P2871] [P3080] [P2888] [P2249] [P2895] [P2910] [P2911] [P2918] [P2925] [P1840] [P2935] [P2955] [P1318] [P2956] [P2957] [P3150] [P3366] [P3367] [P3368] [P3370] [P1894] [P3371] [P2536] [P3372] [P3374] [P3176] [P3375] [P3378] [P3382] [P3383] [P3385] [P3717] [P2070] [P3741] [P3742] [P2732] [P3879] [P1551] [P3908] [P1582] [P3912] [P3918] [P3951] [P3954] [P3955] [P3956] [P4018] [P4057] [P4136] [P4305] [P4325] [P4326] [P4379] [P4391] [P2508] [P4413] [P2718] [P4414] [P1692] [P4445] [P4446] [P4549] [P2329] [P4702] [P2734] [P4779] [P4816] [P2484] [P4860] [P4884] [P4933] [P1098] [P4942] [P4994] [P4995] [P4999] [P5015] [P3303] [P5016] [P5017] [P3303] [P5018] [P5019] [CF1A] [P2257] [CF4A] [CF4B] [CF4C] [P2659] [CF6C] [CF9A] [CF12A] [CF14A] [CF16A] [CF22A] [CF25B] [CF27A] [CF33A] [CF34A] [CF36A] [CF38C] [CF39D] [CF41A] [CF43A] [CF44A] [CF46A] [P1436] [CF47A] [P2320] [CF50A] [CF53A] [P3063] [CF58B] [CF59B] [CF61A] [CF68A] [CF71A] [CF90A] [CF92A] [CF110A] [CF112B] [CF114A] [CF118A] [P3233] [CF119A] [CF120A] [CF124A] [P1456] [CF133A] [P3272] [CF133B] [CF134A] [CF149A] [CF155A] [CF158B] [CF171A] [CF172A] [P2774] [CF200B] [CF231A] [P1975] [CF236A] [CF250A] [CF263A] [CF263B] [CF266A] [CF266B] [CF271A] [CF281A] [CF282A] [P1750] [CF290A] [CF297A] [CF318A] [P1101] [CF339A] [CF386A] [CF393A] [CF405A] [P2866] [CF409A] [CF409F] [CF431A] [P2307] [CF431B] [CF432A] [CF443A] [CF479A] [CF492A] [CF509A] [CF510A] [CF518A] [CF519A] [CF520A] [CF527D] [CF546A] [P2271] [CF556A] [P1227] [CF577A] [CF579A] [CF609A] [CF616A] [CF617A] [P2923] [CF630D] [CF637A] [CF656A] [CF656F] [CF664A] [CF672A] [CF677A] [CF678A] [P1934] [CF681A] [P2876] [CF689A] [CF697A] [CF702A] [CF703A] [P2402] [CF705A] [P2071] [CF707A] [CF709A] [CF732A] [CF733A] [P3101] [CF734A] [P2361] [CF742A] [CF747A] [CF750A] [P3106] [CF757A] [CF758A] [CF761A] [CF766A] [CF784F] [CF797A] [CF802G] [CF805A] [CF810A] [CF835A] [CF839A] [CF864A] [CF869A] [CF877A] [CF879A] [P2896] [CF884A] [CF888A] [CF897A] [P1639] [CF898A] [CF899A] [CF899B] [CF902A] [CF903A] [CF911A] [CF913A] [CF914A] [P1814] [CF915A] [CF916A] [CF918A] [P3546] [CF922B] [CF932A] [CF934B] [P3049] [CF935A] [P1957] [CF937A] [CF939A] [P3152] [CF939B] [P3207] [CF948A] [CF950A] [P3254] [CF961A] [P2099] [CF962A] [CF964B] [CF976A] [P1493] [CF977A] [CF977B] [CF978C] [P3420] [CF980A] [CF982A] [P1713] [CF988A] [P1513] [CF992A] [CF994A] [CF999B] [CF1003A] [P1936] [CF1005A] [CF1008A] [P2696] [CF1009A] [CF1015A] [CF1041A] [CF1047A] [CF1061A] [CF1064A] [CF1077A] [CF1080A] [CF1080B] [CF1085A] [CF1088A] [CF1091A] [P1085] [CF1095A] [CF1099A] [CF1100A] [P2813] [CF1101A] [CF1102A] [CF1102B] [CF1102C] [CF1105A] [CF1105B] [P3083] [CF1105C] [CF1107A] [CF1108A] [CF1108B] [P3455] [SP1] [P3174] [SP2] [SP5] [SP11] [SP302] [SP27561] [AT25] [P1335] [AT162] [AT184] [AT211] [P2632] [AT240] [AT254] [P2976] [AT261] [AT265] [P3517] [AT314] [P3154] [AT700] [AT731] [AT765] [AT807] [AT817] [P1216] [AT934] [P2719] [AT941] [AT1010] [AT1061] [P1239] [AT1088] [AT1213] [AT1301] [P2337] [AT1357] [P1870] [AT1476] [P2004] [AT1550] [AT1717] [AT1872] [AT1894] [AT2084] [P2892] [AT2150] [AT2238] [P2349] [AT2281] [P2492] [AT2392] [AT2412] [AT2465] [AT2523] [AT2690] [AT2827] [P3124] [AT3599] [AT3731] [AT3848] [UVA113] [UVA374] [UVA1225] [UVA10055] [UVA10340] [UVA10346] [P2059] [UVA11292] [UVA11388] [P2315] [UVA11462]
统计数据非实时更新。

难易度统计

尚无评定 1
入门难度 238
普及- 172
普及/提高- 83
普及+/提高 21
提高+/省选- 27
省选/NOI- 8
NOI/NOI+/CTSC 1

统计数据非实时更新。

签名

NOIp2018PJ游记

最优解祭


这是我们大家的rp

#include<bits/stdc++.h>
using namespace std;
struct BigNum {
    static const int BASE=100000000;
    static const int WIDTH=8;
    vector<long long>s;
    BigNum(long long num=0){*this=num;}
    BigNum operator = (long long num){
        s.clear();
 do{   s.push_back(num%BASE);
            num/=BASE;
        } while(num>0);
        return *this;
    }
    BigNum operator = (const string& str){
        s.clear();
        int x,len=(str.length()-1)/WIDTH+1;
        for(int i=0;i<len;i++){
            int end=str.length()-i*WIDTH;
            int start=max(0,end-WIDTH);
            sscanf(str.substr(start,end-start).c_str(),"%d",&x);
            s.push_back(x);
        }
        return *this;
    }
    BigNum operator + (const BigNum& b)const{
        BigNum c;
        c.s.clear();
        for(int i=0,g=0;;i++){
            if(g==0&&i>=s.size()&&i>=b.s.size())break;
            int x=g;
            if(i<s.size())x+=s[i];
            if(i<b.s.size())x+=b.s[i];
            c.s.push_back(x%BASE);
            g=x/BASE;
        }
        return c;
    }
    bool operator < (const BigNum& b)const{
        if(s.size()!=b.s.size())return s.size()<b.s.size();
        for(int i=s.size()-1;i>=0;i--)
        if(s[i]!=b.s[i])return s[i]<b.s[i];
        return false;
    }
    bool operator > (const BigNum& b)const{return b<*this;}
    bool operator <= (const BigNum& b)const{return !(b<*this);}
    bool operator >= (const BigNum& b)const{return !(*this<b);}
    bool operator != (const BigNum& b)const{return b<*this||*this<b;}
    bool operator == (const BigNum& b)const{return !(b<*this)&&!(*this<b);}
    void S(int a){
        vector<long long>c;
        for(int i=0;i<s.size();++i){
            if(c.size()<=i)c.push_back(s[i]*a);else
            c[i]+=s[i]*a;
            if(c[i]/BASE)
            if(c.size()<=i+1)c.push_back(c[i]/BASE);else
            c[i+1]=c[i]/BASE;
            c[i]%=BASE;
        }
        s=c;
    }
    void C(int a){
        vector<long long>c(s);
        if(s.back()/a)c[s.size()-1]=s.back()/a,s[s.size()-1]%=a;else
        c.pop_back();
        for(int i=s.size()-2;i>=0;--i){
            long long num=s[i+1]*BASE+s[i];
            c[i]=num/a;
            num%=a;
            s[i]=num;
        }
        s=c;
    }
};
ostream& operator << (ostream &out,const BigNum& x){
    out<<x.s.back();
    for(int i=x.s.size()-2;i>=0;i--){
        char buf[20];
        sprintf(buf,"%08d",x.s[i]);
        for(int j=0;j<strlen(buf);j++)out<<buf[j];
    }
    return out;
}
istream& operator >> (istream &in,BigNum& x){    string s;
if(!(in>>s))return in;
    x=s;
    return in;
}
BigNum rp,score;
int main ()
{
    while(1) {rp=rp+1;score=score+1;cout<<rp<<' '<<score<<'\n';}
    return 0;
}

by Song_of_long_voyage

点击查看更多...