<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.33dai.wiki/index.php?action=history&amp;feed=atom&amp;title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95%2F01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6</id>
	<title>01-基础语法/01-基础框架 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://www.33dai.wiki/index.php?action=history&amp;feed=atom&amp;title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95%2F01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6"/>
	<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;action=history"/>
	<updated>2026-05-21T00:47:10Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=289&amp;oldid=prev</id>
		<title>33DAI：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=289&amp;oldid=prev"/>
		<updated>2026-05-20T18:12:08Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年5月20日 (三) 18:12的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-288:rev-289 --&gt;
&lt;/table&gt;</summary>
		<author><name>33DAI</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=288&amp;oldid=prev</id>
		<title>-&gt;Importer：​批量导入三三文档</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=288&amp;oldid=prev"/>
		<updated>2026-05-20T16:50:33Z</updated>

		<summary type="html">&lt;p&gt;批量导入三三文档&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年5月20日 (三) 16:50的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-189:rev-288 --&gt;
&lt;/table&gt;</summary>
		<author><name>-&gt;Importer</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=189&amp;oldid=prev</id>
		<title>33DAI：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=189&amp;oldid=prev"/>
		<updated>2026-05-20T16:25:02Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年5月20日 (三) 16:25的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-188:rev-189 --&gt;
&lt;/table&gt;</summary>
		<author><name>33DAI</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=188&amp;oldid=prev</id>
		<title>-&gt;Importer：​批量导入三三文档</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/01-%E5%9F%BA%E7%A1%80%E6%A1%86%E6%9E%B6&amp;diff=188&amp;oldid=prev"/>
		<updated>2026-05-20T16:22:29Z</updated>

		<summary type="html">&lt;p&gt;批量导入三三文档&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== 简单框架 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
在中间空白部分写你的代码。&lt;br /&gt;
&lt;br /&gt;
=== 全局 &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; 改 &amp;lt;code&amp;gt;long long&amp;lt;/code&amp;gt; 框架 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
#define int long long&lt;br /&gt;
using namespace std;&lt;br /&gt;
signed main()&lt;br /&gt;
{&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;define&amp;lt;/code&amp;gt; 是简单全局关键字替换，因为 &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; 函数返回值必须为 &amp;lt;math&amp;gt;32&amp;lt;/math&amp;gt; 位整数，所以为了避免 &amp;lt;code&amp;gt;int main()&amp;lt;/code&amp;gt; 被改成 &amp;lt;code&amp;gt;long long main()&amp;lt;/code&amp;gt;，就改成了 &amp;lt;code&amp;gt;signed main()&amp;lt;/code&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
在比赛环境中 &amp;lt;code&amp;gt;signed&amp;lt;/code&amp;gt; 和 &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; 完全等价，都是 &amp;lt;math&amp;gt;32&amp;lt;/math&amp;gt; 位有符号整数。&lt;br /&gt;
&lt;br /&gt;
=== 文件输入输出框架 ===&lt;br /&gt;
&lt;br /&gt;
NOI 系列赛事很多需要使用文件的形式输入输出。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
    freopen(&amp;quot;题目英文名.in&amp;quot;, &amp;quot;r&amp;quot;, stdin);&lt;br /&gt;
    freopen(&amp;quot;题目英文名.out&amp;quot;, &amp;quot;w&amp;quot;, stdout);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
题目英文名在正式比赛中在试卷第一页就会有，在 OJ 上一般标题下面会有文件 IO 的名称规则。&lt;br /&gt;
&lt;br /&gt;
=== 输入输出加速框架 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
    ios::sync_with_stdio(false);&lt;br /&gt;
    cin.tie(0);&lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:基础语法]]&lt;br /&gt;
[[Category:三三文档]]&lt;/div&gt;</summary>
		<author><name>-&gt;Importer</name></author>
	</entry>
</feed>