Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149081 向运淇 判断质数(使用while循环) C++ Wrong Answer 0 MS 268 KB 165 2026-03-07 12:30:19

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { int a,b,temp; cin>>a>>b; while(b!=0) { temp=a%b; a=b; b=temp; } cout<<a; return 0; }


Run Info:

------Input------
157
------Answer-----
Yes
------Your output-----
157