跳到正文

题解

P1001题解

Windy_YY约 1 分钟
原文
文章信息与版本

文章信息

发布
2021年5月23日
收录
2025年12月12日
更新
2026年11月6日
篇幅
约 1 分钟
题目
CF1906A

版本

  1. v1当前

这是我的第一篇题解。

P1001:所有人的第二题(仅次于第一题hello world)

C++代码:

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

C代码:

C
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
  
  int main(){
      int a,b;
      scanf("%d%d",&a,&b);
      printf("%d\n",a+b);
      return 0;
  }
原文
存档评论3 条抓取于