1 条题解

  • 0
    @ 2024-12-24 9:54:35

    C :

    #include<stdio.h>
    int main()
    {
    	    printf("sheep_go\n");
            printf("nothing_come\n");
            printf("wolf_go\n");
            printf("sheep_come\n");
            printf("vegetable_go\n");
            printf("nothing_come\n");
            printf("sheep_go\n");
            printf("succeed\n");
           // printf("\n");
            
            printf("sheep_go\n");
            printf("nothing_come\n");
            printf("vegetable_go\n");
            printf("sheep_come\n");
            printf("wolf_go\n");
            printf("nothing_come\n");
            printf("sheep_go\n");
            printf("succeed\n");
         //   printf("\n");
    
            
            return(0);
    }
     
    
    

    C++ :

    #include<stdio.h>
    int main()
    {
     printf("sheep_go\n");
     printf("nothing_come\n"); 
     printf("wolf_go\n"); 
     printf("sheep_come\n");
     printf("vegetable_go\n");
     printf("nothing_come\n");
     printf("sheep_go\n");
     printf("succeed\n");
    
     
    
     printf("sheep_go\n");
     printf("nothing_come\n");
     printf("vegetable_go\n");  
     printf("sheep_come\n");
     printf("wolf_go\n"); 
     printf("nothing_come\n");
     printf("sheep_go\n");
     printf("succeed\n");
     return 0;
    }
    
    

    Java :

    public class Main{
      public static void main(String[] args){
        System.out.println("sheep_go");
        System.out.println("nothing_come");
        System.out.println("wolf_go");
        System.out.println("sheep_come");
        System.out.println("vegetable_go");
        System.out.println("nothing_come");
        System.out.println("sheep_go");
        System.out.println("succeed");
        System.out.println("sheep_go");
        System.out.println("nothing_come");
        System.out.println("vegetable_go");
        System.out.println("sheep_come");
        System.out.println("wolf_go");
        System.out.println("nothing_come");
        System.out.println("sheep_go");
        System.out.println("succeed");
      }
    }
    
    • 1

    信息

    ID
    1294
    时间
    1000ms
    内存
    32MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者