【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> using namespace std; bool zhi(int x){ for(int i=2;i<=x/2;i++)if(x%i==0)return 0; return 1; } int main() { int s,mas=0; cin>>s; for(int i=2;i<=s/2;++i){ if(zhi(i) && zhi(s-i)){ mas=max(i*(s-i),mas); } } cout<<mas; return 0; }//OK
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:386183 本月:281 上月:799 今日:7 昨日:6 当前在线:1人