Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151768 徐英杰 18排列骨头 C++ Wrong Answer 1 MS 264 KB 411 2026-04-18 16:47:34

Tests(0/1):


Code:

#include<iostream> using namespace std; int a[1005]; int main() { int t = 1 ; for (int i = 1;i<=30;i++) { if (t == 10) { t = 1; } if (t == 9) { a[i] = 1; } if (t < 9 && a[i] != 1) { t++; } } for (int i = 1;i <=30;i++) { if (a[i] == 0) { cout<<i<<" "; } } }


Run Info:

------Input------
0
------Answer-----
1 2 3 4 10 11 13 14 15 17 20 21 25 28 29
------Your output-----
1 2 3 4 5 6 7 8