MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20260212085511|38",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 48,
                "ns": 0,
                "title": "\u7ebf\u6bb5\u6811\u6a21\u677f",
                "pageid": 33,
                "logpage": 33,
                "revid": 162,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-03-08T06:59:41Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c==\u5355\u70b9\u4fee\u6539\u533a\u95f4\u67e5\u8be2==  <syntaxhighlight lang=\"cpp\" line> const int MAXN = 500000; struct SegTree {     int sum[MAXN * 4 + 5];     // \u6839\u636e\u5b50\u8282\u70b9\u7b97\u5f53\u524d\u8282\u70b9     void up(int now)     {         sum[now] = sum[now * 2] + sum[now * 2 + 1];     }     // \u57fa\u4e8e a \u6570\u7ec4 build     void build(int a[], int now, int l, int r)     {         if (l == r)         {             sum[now] = a[l];             return;         }         int mid = (l + r) / 2;\u2026\u201d"
            },
            {
                "logid": 47,
                "ns": 0,
                "title": "\u5e38\u7528\u811a\u672c",
                "pageid": 0,
                "logpage": 8,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "33DAI",
                "timestamp": "2026-03-07T03:07:27Z",
                "comment": "\u5185\u5bb9\u4e3a\uff1a\u201c==\u7f16\u8bd1\u6307\u4ee4==  ===Windows===  Windows \u4fee\u6539\u8bed\u8a00\u6807\u51c6\u53ca\u5f00\u6808\u7f16\u8bd1\u547d\u4ee4\u4e3a -std=c++14  -O2 -Wl,--stack=1073741824  \u5176\u4e2d -Wl,--stack=1073741824 \u5728\u67d0\u4e9b\u573a\u666f\u53ef\u80fd\u9700\u8981\u53cc\u5f15\u53f7\u62ec\u8d77\u6765\u3002  ===Linux===  Linux \u5f53\u524d\u4f1a\u8bdd\u5f00\u6808\u547d\u4ee4\u4e3a ulimit -s unlimited  \u53ef\u4ee5\u7528 ulimit -s \u67e5\u770b\u6808\u7a7a\u95f4\u5927\u5c0f\u3002  ==\u4fdd\u7559 x \u4f4d\u5c0f\u6570==  \u4fdd\u7559 3 \u4f4d\u5c0f\u6570 << fixed << setprecisi\u2026\u201d\uff0c\u552f\u4e00\u8d21\u732e\u8005\u662f\u201c[[Special:Contributions/33DAI|33DAI]]\u201d\uff08[[User talk:33DAI|\u8ba8\u8bba]]\uff09"
            },
            {
                "logid": 46,
                "ns": 0,
                "title": "\u4e09\u4e09\u6708\u8d5b",
                "pageid": 32,
                "logpage": 32,
                "revid": 160,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-03-01T03:25:47Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c==\u96be\u5ea6==  \u5927\u7ea6 CSP-J \u7ea7\u522b\uff0c\u53c2\u8003 [https://oj.33dai.cn/p?q=category%3A%E6%9C%88%E8%B5%9B 33OJ:\u6708\u8d5b]  ==\u8d5b\u5236==  OI \u8d5b\u5236  ==\u6bd4\u8d5b\u65f6\u957f==  3 \u5c0f\u65f6   ==\u6bd4\u8d5b\u65f6\u95f4==  * \u6b63\u8d5b\uff08\u7ebf\u4e0b\u65ad\u7f51\u8d5b\uff09\uff1a\u6bcf\u4e2a\u6708\u5012\u6570\u7b2c\u4e8c\u4e2a\u5468\u516d\u665a 18:00 * \u7ebf\u4e0a\u955c\u50cf\u8d5b\uff1a\u6bcf\u4e2a\u6708\u6700\u540e\u4e00\u4e2a\u5468\u672b\u6301\u7eed\u5f00\u653e  ==\u6bd4\u8d5b\u8d39\u7528==  * \u6b63\u8d5b\uff1a128 \u5143/\u573a\u6216\u6309\u4e00\u6b21\u8bad\u7ec3\u8425\u6536\u8d39\u3002 * \u7ebf\u4e0a\u955c\u50cf\u8d5b\uff1a\u514d\u8d39\u5728 [https://oj.33dai.cn 33OJ] \u53c2\u4e0e\u3002  ==\u51fa\u9898\u4eba==\u2026\u201d"
            },
            {
                "logid": 45,
                "ns": 6,
                "title": "\u6587\u4ef6:\u83ab\u6bd4\u4e4c\u65af\u53cd\u6f14.jpg",
                "pageid": 31,
                "logpage": 31,
                "revid": 157,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-02-28T09:05:21Z",
                "comment": ""
            },
            {
                "logid": 44,
                "ns": 6,
                "title": "\u6587\u4ef6:\u83ab\u6bd4\u4e4c\u65af\u53cd\u6f14.jpg",
                "pageid": 31,
                "logpage": 31,
                "revid": 157,
                "params": {
                    "img_sha1": "kgieqw0yp3xv9vhuaoffijb3bf8iqf6",
                    "img_timestamp": "2026-02-28T09:05:21Z"
                },
                "type": "upload",
                "action": "upload",
                "user": "33DAI",
                "timestamp": "2026-02-28T09:05:21Z",
                "comment": ""
            },
            {
                "logid": 43,
                "ns": 0,
                "title": "\u53cd\u6f14",
                "pageid": 30,
                "logpage": 30,
                "revid": 145,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-02-28T02:24:47Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c\u7ec4\u5408\u6570 <math>C_n^m</math> \u5e38\u7528\u7b26\u53f7 <math>\\dbinom{n}{m}</math> \u6765\u8868\u793a\uff0c\u8bfb\u4f5c\u201c<math>n</math> \u9009 <math>m</math>\u201d\u3002  ==\u7ec4\u5408\u6570\u7ecf\u5178\u6027\u8d28==  \u9009\u51fa <math>m</math> \u76f8\u5f53\u4e8e\u9009\u51fa <math>n-m</math> \u4e2a\u6392\u9664\u3002  <math>\\dbinom{n}{m}=\\dbinom{n}{n-m}</math>  \u7ec4\u5408\u6570\u7684\u9012\u63a8\u5f0f\uff08\u6768\u8f89\u4e09\u89d2\uff09  <math>\\dbinom{n}{m}=\\dbinom{n-1}{m}+\\dbinom{n-1}{m-1}</math>  \u57fa\u7840\u6027\u8d28\uff08\u6768\u8f89\u4e09\u89d2\u7684\u4e00\u884c\u3001<math>(1+1)^n</math>\uff09  <math>\\dbinom{n}{0}+\\dbinom\u2026\u201d"
            },
            {
                "logid": 42,
                "ns": 0,
                "title": "\u6b27\u62c9\u51fd\u6570",
                "pageid": 29,
                "logpage": 29,
                "revid": 138,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-02-26T02:23:58Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c==\u7ebf\u6027\u7b5b\u6c42\u6b27\u62c9\u51fd\u6570==  <syntaxhighlight lang=\"cpp\" line> const int MAXN = 40000; bool p[MAXN + 5]; int phi[MAXN + 5]; vector<int> pri; // \u7b5b\u51fa 1~n \u4e2d\u7684\u6bcf\u4e2a\u6570\u662f\u5426\u4e3a\u8d28\u6570 // \u987a\u5e26\u6c42\u51fa\u6240\u6709\u6b27\u62c9\u51fd\u6570 void get_primes(int n) {     for (int i = 1; i <= n; i++)         p[i] = true;     p[0] = p[1] = false;     phi[1] = 1;     for (int i = 2; i <= n; i++)     {         if (p[i])         {             pri.push_back(i);             phi[i] = i - 1;\u2026\u201d"
            },
            {
                "logid": 41,
                "ns": 0,
                "title": "\u57fa\u7840\u8bed\u6cd5\u5927\u7eb2",
                "pageid": 28,
                "logpage": 28,
                "revid": 132,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-02-24T02:42:58Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c==\u4f9d\u8d56\u5173\u7cfb==  # C01-1 \u9ad8\u7ea7\u8ba1\u7b97\u5668\uff1a\u8f93\u51fa\u8bed\u53e5\u3001int \u53d8\u91cf\u3001\u8f93\u5165\u8bed\u53e5\u3001\u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u3001\u5c0f\u62ec\u53f7 #* E01-1 int\u5b58\u4e0d\u4e0b\u4e86\uff1along long \u7c7b\u578b\u3001\u6570\u636e\u8303\u56f4\u3001\u6574\u6570\u7f16\u7801 #* E01-2 \u5c0f\u6570\u600e\u4e48\u529e\uff1adouble \u7c7b\u578b\u3001\u7c7b\u578b\u8f6c\u6362 # C01-2 \u5982\u679c\u90a3\u4e48\uff1a\u4e0d\u5e26 else \u7684 if \u8bed\u53e5\u3001\u9664\u6cd5\u3001\u53d6\u4f59\u3001\u76f8\u7b49\u3001\u4e0d\u7b49 # C01-3 \u76f8\u5dee\u591a\u5c11\uff1a\u5e26 else \u7684 if \u8bed\u53e5\u3001\u5927\u4e8e\u3001\u5c0f\u4e8e\u3001\u5e76\u4e14 #* E01-3 \u6587\u5b57\u4e0e\u7b26\u53f7\uff1achar \u7c7b\u578b\u3001\u5b57\u7b26\u6570\u5b57\u2026\u201d"
            },
            {
                "logid": 40,
                "ns": 0,
                "title": "\u65b0\u8303\u5f0f\u4fe1\u5965:\u7b80\u5355\u8bed\u6cd5",
                "pageid": 0,
                "logpage": 27,
                "params": {},
                "type": "delete",
                "action": "delete",
                "user": "33DAI",
                "timestamp": "2026-02-24T02:42:49Z",
                "comment": "\u5185\u5bb9\u4e3a\uff1a\u201c==\u4f9d\u8d56\u5173\u7cfb==  # C01-1 \u9ad8\u7ea7\u8ba1\u7b97\u5668\uff1a\u8f93\u51fa\u8bed\u53e5\u3001int \u53d8\u91cf\u3001\u8f93\u5165\u8bed\u53e5\u3001\u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u3001\u5c0f\u62ec\u53f7 #* E01-1 int\u5b58\u4e0d\u4e0b\u4e86\uff1along long \u7c7b\u578b\u3001\u6570\u636e\u8303\u56f4\u3001\u6574\u6570\u7f16\u7801 #* E01-2 \u5c0f\u6570\u600e\u4e48\u529e\uff1adouble \u7c7b\u578b\u3001\u7c7b\u578b\u8f6c\u6362 # C01-2 \u5982\u679c\u90a3\u4e48\uff1a\u4e0d\u5e26 else \u7684 if \u8bed\u53e5\u3001\u9664\u6cd5\u3001\u53d6\u4f59\u3001\u76f8\u7b49\u3001\u4e0d\u7b49 # C01-3 \u76f8\u5dee\u591a\u5c11\uff1a\u5e26 else \u7684 if \u8bed\u2026\u201d\uff0c\u552f\u4e00\u8d21\u732e\u8005\u662f\u201c[[Special:Contributions/33DAI|33DAI]]\u201d\uff08[[User talk:33DAI|\u8ba8\u8bba]]\uff09"
            },
            {
                "logid": 39,
                "ns": 0,
                "title": "\u65b0\u8303\u5f0f\u4fe1\u5965:\u7b80\u5355\u8bed\u6cd5",
                "pageid": 0,
                "logpage": 27,
                "revid": 129,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "33DAI",
                "timestamp": "2026-02-24T02:39:25Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c==\u4f9d\u8d56\u5173\u7cfb==  # C01-1 \u9ad8\u7ea7\u8ba1\u7b97\u5668\uff1a\u8f93\u51fa\u8bed\u53e5\u3001int \u53d8\u91cf\u3001\u8f93\u5165\u8bed\u53e5\u3001\u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u3001\u5c0f\u62ec\u53f7 #* E01-1 int\u5b58\u4e0d\u4e0b\u4e86\uff1along long \u7c7b\u578b\u3001\u6570\u636e\u8303\u56f4\u3001\u6574\u6570\u7f16\u7801 #* E01-2 \u5c0f\u6570\u600e\u4e48\u529e\uff1adouble \u7c7b\u578b\u3001\u7c7b\u578b\u8f6c\u6362 # C01-2 \u5982\u679c\u90a3\u4e48\uff1a\u4e0d\u5e26 else \u7684 if \u8bed\u53e5\u3001\u9664\u6cd5\u3001\u53d6\u4f59\u3001\u76f8\u7b49\u3001\u4e0d\u7b49 # C01-3 \u76f8\u5dee\u591a\u5c11\uff1a\u5e26 else \u7684 if \u8bed\u53e5\u3001\u5927\u4e8e\u3001\u5c0f\u4e8e\u3001\u5e76\u4e14 #* E01-3 \u6587\u5b57\u4e0e\u7b26\u53f7\uff1achar \u7c7b\u578b\u3001\u5b57\u7b26\u6570\u5b57\u2026\u201d"
            }
        ]
    }
}