Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133408 蒋雨翰 18排列骨头 C++ Accepted 1 MS 256 KB 326 2025-10-18 16:57:46

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int a[100]; int main() { int cnt=0; int i=1; int ss=0; while(cnt<15){ if(a[i]==0){ ss++; if(ss==9){ a[i]=1; cnt++; ss=0; } } i++; if(i>30)i=1; } for(int j=1;j<=30;j++){ if(a[j]==0){ cout<<j<<" "; } } return 0; }