Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117868 顾文博 14报数拿糖 C++ Accepted 1 MS 260 KB 531 2025-04-20 14:44:12

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n=1; for(int i=1;i<=10;i++){ for(int j=1;j<=10;j++){ if(n%3==0){ cout<<j<<endl; n++; } else{ n++; continue; }} } return 0; }