Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84691 付博苏逸 15相同数的次数 C++ Accepted 0 MS 268 KB 268 2024-07-16 11:20:48

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int xt=0,xl=0,count=0; for(int i = 0;i <1000;i ++ ){ xt++; if(xt >20) xt = 1; xl++; if(xl >30) xl = 1; if(xt == xl) count++; } cout<<count; return 0; }