Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6968 詹梓涵 18排列骨头 C++ Accepted 0 MS 260 KB 487 2025-03-29 12:47:28

Tests(1/1):


Code:

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