Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
326568 黄浙峰老师 【C6-1】趣味填空 C++ 通过 100 1 MS 252 KB 314 2025-06-14 13:18:14

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,s,a=0,b=0,t=1; scanf("%d=%d",&n,&s); //123 4 while(n){ b=(n%10)*t+b; t=t*10; n=n/10; a=n; if(a+b == s){ printf("%d+%d=%d",a,b,s); //cout<<a<<'+'<<b<<'='<<s; return 0; } } printf("Impossible!"); return 0; }


测评信息: