Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
139728 梁乃元 派对灯 C++ 编译错误 0 0 MS 0 KB 806 2024-03-24 22:02:55

Tests(0/0):


# include <bits/stdc++.h> using namespace std ; int h [9] [7] = { { 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 } , { 2 , 0 , 0 , 1 , 1 , 1 , 0 } , { 1 , 0 , 1 , 0 , 1 , 0 , 1 } , { 1 , 0 , 1 , 1 , 0 , 1 , 1 } , { 2 , 1 , 0 , 0 , 1 , 0 , 0 } , { 1 , 1 , 0 , 1 , 0 , 1 , 0 } , { 2 , 1 , 1 , 0 , 0 , 0 , 1 } , { 0 , 1 , 1 , 1 , 1 , 1 , 1 } , } ; int loc ( int a ) { return ( x % 6 == 0 ? 6 : x % 6 ) ; } int chk ( int s ) { if ( h [s] [0] > c || ( c == 2 && s == 4 ) || ( c == 3 && ( s == 2 || s == 5 || s == 7 ) ) || ( c == 1 && s == 8 ) ) { return 0 ; } for ( int i = 1 ; i <= 6 ; i ++ ) { if ( flag [i] == -1 ) { continue ; } if ( h [s] [i] != flg [i] ) { return 0 ; } } return 1 ; } int main ( ) { return 0 ; }


测评信息: