Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129410 常钰杰 14报数拿糖 C++ Accepted 0 MS 260 KB 462 2025-08-25 14:55:50

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int num = 1; for(int i = 1; i <= 100; i++) { if(num % 3 == 0) { if(i % 10 == 0) { cout << 10 << " "; } else { cout << i % 10 << " "; } } num++; if(num > 3) { num %= 3; } } return 0; }