Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
430904 许舒睿 【C2-8】判断素数 C++ 解答错误 20 4 MS 256 KB 224 2026-03-05 19:52:02

Tests(1/5):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n==1) cout<<"F"; else{ for(int i=2;i<n;i++){ if(n%i==0){ cout<<"F"; return 0; } } } cout<<"T"; return 0; }


测评信息: