MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "batchcomplete": "", "continue": { "lecontinue": "20250104135150|143", "continue": "-||" }, "query": { "logevents": [ { "logid": 153, "ns": 2, "title": "\u7528\u6237:CAT20240316", "pageid": 0, "logpage": 0, "params": { "userid": 27 }, "type": "newusers", "action": "create", "user": "CAT20240316", "timestamp": "2025-04-06T00:01:26Z", "comment": "" }, { "logid": 152, "ns": 2, "title": "\u7528\u6237:Ghost", "pageid": 0, "logpage": 0, "params": { "userid": 26 }, "type": "newusers", "action": "create", "user": "Ghost", "timestamp": "2025-03-22T10:34:19Z", "comment": "" }, { "logid": 151, "ns": 2, "title": "\u7528\u6237:\u7cd6\u5200", "pageid": 0, "logpage": 0, "params": { "userid": 25 }, "type": "newusers", "action": "create", "user": "\u7cd6\u5200", "timestamp": "2025-03-10T07:59:38Z", "comment": "" }, { "logid": 150, "ns": 2, "title": "\u7528\u6237:Xiaoxing", "pageid": 0, "logpage": 0, "params": { "userid": 24 }, "type": "newusers", "action": "create", "user": "Xiaoxing", "timestamp": "2025-02-14T16:10:05Z", "comment": "" }, { "logid": 149, "ns": 2, "title": "\u7528\u6237:Szy", "pageid": 0, "logpage": 0, "params": { "userid": 23 }, "type": "newusers", "action": "create", "user": "Szy", "timestamp": "2025-02-07T06:32:28Z", "comment": "" }, { "logid": 148, "ns": 2, "title": "\u7528\u6237:LZJFR233", "pageid": 0, "logpage": 0, "params": { "userid": 22 }, "type": "newusers", "action": "create", "user": "LZJFR233", "timestamp": "2025-01-22T11:50:56Z", "comment": "" }, { "logid": 147, "ns": 0, "title": "1", "pageid": 82, "logpage": 82, "params": {}, "type": "create", "action": "create", "user": "SS9G1145", "timestamp": "2025-01-20T09:19:47Z", "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<pre> //\u7b2c\u4e00\u9898 #include <bits/stdc++.h> using namespace std; int a[100000]; int main() { int n; int m=-9999,sum=1; int i; cin>>n; a[0]=-3456497; for(i=1;i<=n;i++) { cin>>a[i]; \tif(a[i]==a[i-1]) sum++; \telse sum=1; \tif(sum>m) m=sum; } cout<<m<<endl; return 0; } //\u7b2c\u4e8c\u9898 \u81ea\u5df1\u5199 //\u7b2c\u4e09\u9898 #include <bits/stdc++.h> using namespace std; const int N = 1010; in\u2026\u201d" }, { "logid": 146, "ns": 0, "title": "\u5171\u4eab", "pageid": 81, "logpage": 81, "params": {}, "type": "create", "action": "create", "user": "SS9G1145", "timestamp": "2025-01-18T03:47:25Z", "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<nowiki>#</nowiki>include <bits/stdc++.h> using namespace std; int a[100]; int main() { int n,sum=0,num=0; cin>>n; for(int i=1;i<=n;++i) { cin>>a[i]; } for(int i=1;i<=n;++i) sum+=a[i]; num=sum/n; int aum = 0; for(int i=1;i<=n;++i) aum+=abs(a[i]-num); cout<<aum/2; return 0; }\u201d" }, { "logid": 145, "ns": 10, "title": "\u6a21\u677f:Test", "pageid": 80, "logpage": 80, "params": {}, "type": "create", "action": "create", "user": "SS9G1145", "timestamp": "2025-01-04T18:17:19Z", "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c.infobox { \toverflow: visible; \twidth: 100%; \tmax-width: 400px; \tmargin-top: 0; \tmargin-bottom: 1.6rem!important; \tbackground: var(--color-surface-2); \tborder-radius: 8px; \tborder-spacing: 0; \tbox-shadow: var(--box-shadow-card); \tfont-size: 0.875rem; \ttext-align: left; } .infobox tbody { \tdisplay: flex; \tflex-wrap: wrap; } .infobox tr { \tdisplay: flex; \tbox-sizing: border-box; \tflex-direction: column; \tpadding: 0 10px; \tmargin-top: 10px; } .infobox th, .info\u2026\u201d" }, { "logid": 144, "ns": 0, "title": "\u5185\u5bb9\u7b80\u4ecb\u5bfc\u822a", "pageid": 79, "logpage": 79, "params": { "description": "\u200e[edit=sysop] (\u65e0\u9650\u671f)\u200e[move=sysop] (\u65e0\u9650\u671f)", "details": [ { "type": "edit", "level": "sysop", "expiry": "infinite" }, { "type": "move", "level": "sysop", "expiry": "infinite" } ] }, "type": "protect", "action": "protect", "user": "SS9G1145", "timestamp": "2025-01-04T17:49:17Z", "comment": "" } ] } }