跳到正文

题解

题解 SP1 【TEST - Life, the Universe, and Everything】

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

文章信息

收录
2026年5月23日
更新
2026年5月23日
篇幅
约 1 分钟
题目
SP1

版本

  1. v1当前

#include<cstdio> #include<cstdlib> #include<cstring> #include<iostream> using namespace std; int main(){ int a; for(;scanf(“%d”,&a)!=EOF;){ //防止TLE; if(a==42)break; //若a=42,跳出循环; cout<<a<<endl; //输出a。 } return 0; //走人! }

原文