Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1840 孙浚轩 15相同数的次数 C++ Accepted 0 MS 260 KB 234 2023-11-12 00:30:39

Tests(1/1):


Code:

#include<iostream> using namespace std; int main() { int a=1,b=1,i=0,s=0; while(i<1000) { if(a==b) s++; a=a%20+1; b=b%30+1; i++; } cout<<s; return 0; }