跳到正文

休闲·娱乐

P1001的《神代码》

yisit约 2 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 2 分钟

版本

  1. v1当前

前言

内容仅代表个人观点,如果要求删除请私信

CE分区

第一位

双语言结合体:

C++
#include <stdio.h>
int main()
{
    int a b;
    scanf("%d%d",&a,&b);
    printf("%d/n",a+b);
    return 0;
}

第二位

笔记?

C++
/*1.init(especially multitestcases)
2.int overflow/long long MLE
3.if the ans is hard,try 2-divided
4.memory &b-&a
5.function canshu position
6.the format of input
7.size enough?*/

第三位

无中生有:

C++
#include<iostream>
using namespace std;
int main(){
    int c,d;
    cin>>a>>d;
    cout<<c+d+1-1+1-1+1-1;
    //ieuxiue
}

第四位

这应该是很多人第一次宏定义 #define int long long 时所犯下的吧:

C++
#include<bits/stdc++.h>
using namespace std;
#define int long long
int main(){
    int a,b;
    cin>>a>>b;
    cout<<a+b;
    return 0;
}

第五位

神秘符号.:

C++
#include<cstdio>
using namespace std;
int main(){
	int a,b;
	int c;
	scanf("%d%d", &a. &b);
	c = a + b;
	printf("%d", c);
	return 0;
}

第六位

爱国者之中文括号:

C++
#include <bits/stdc++.h>
using namespace std;
int a,b;
int main(){
    cin>>a>>b;
    cout<<a+b;
}

第七位

不仔细看 return 0 还发不现。

C++
#include<iostream>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    cout<<a+b<<endl;
    return 0
}

第八位

原文