Language: C


#include <stdio.h>

int main()
{
    int n,i=1,x;
    scanf("%d",&n);
    while(i<=n){
        if(i%3==0){
            printf(" %d",i);
        }
        else{
            if(i%10==3){
                printf(" %d",i);
            }
            else{
                x=i;
                while(x){
                    if(x%10!=3){
                    x/=10;
                    }
                    else{
                        printf(" %d",i);
                        break;
                    }
                }
            }
        }
        i++;
    }
    printf("\n");
    return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 8/8 C CPU: 00:00 sec Memory: 2140 KB Length: 592 B 2018-10-11 21:54 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 2140 3 34 00_sample_00.in 
Case #2 : Accepted 00:00 2048 2 3 01_small_00.in 
Case #3 : Accepted 00:00 2040 3 88 01_small_01.in 
Case #4 : Accepted 00:00 1932 4 133 01_small_02.in 
Case #5 : Accepted 00:00 2048 4 433 01_small_03.in 
Case #6 : Accepted 00:00 1992 4 1085 02_large_00.in 
Case #7 : Accepted 00:00 2056 5 2005 02_large_01.in 
Case #8 : Accepted 00:00 2064 6 27565 03_maximum_00.in 



 < prev |  /   | next >      

 

Judge Input #  (  | )  Judge Output #  (  | ) 


  

 



Compiler output:
main.c:37:1: error: unknown type name 'Compile'
   37 | Compile Error Logs:
      | ^~~~~~~
main.c:37:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   37 | Compile Error Logs:
      |               ^~~~
main.c:44:6: error: stray '#' in program
   44 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:46:6: error: stray '#' in program
   46 | Case #1 : Accepted 00:00 2140 3 34 00_sample_00.in
      |      ^
main.c:46:36: error: invalid suffix "_sample_00.in" on integer constant
   46 | Case #1 : Accepted 00:00 2140 3 34 00_sample_00.in
      |                                    ^~~~~~~~~~~~~~~
main.c:47:6: error: stray '#' in program
   47 | Case #2 : Accepted 00:00 2048 2 3 01_small_00.in
      |      ^
main.c:47:35: error: invalid suffix "_small_00.in" on integer constant
   47 | Case #2 : Accepted 00:00 2048 2 3 01_small_00.in
      |                                   ^~~~~~~~~~~~~~
main.c:48:6: error: stray '#' in program
   48 | Case #3 : Accepted 00:00 2040 3 88 01_small_01.in
      |      ^
main.c:48:36: error: invalid suffix "_small_01.in" on integer constant
   48 | Case #3 : Accepted 00:00 2040 3 88 01_small_01.in
      |                                    ^~~~~~~~~~~~~~
main.c:49:6: error: stray '#' in program
   49 | Case #4 : Accepted 00:00 1932 4 133 01_small_02.in
      |      ^
main.c:49:37: error: invalid suffix "_small_02.in" on integer constant
   49 | Case #4 : Accepted 00:00 1932 4 133 01_small_02.in
      |                                     ^~~~~~~~~~~~~~
main.c:50:6: error: stray '#' in program
   50 | Case #5 : Accepted 00:00 2048 4 433 01_small_03.in
      |      ^
main.c:50:37: error: invalid suffix "_small_03.in" on integer constant
   50 | Case #5 : Accepted 00:00 2048 4 433 01_small_03.in
      |                                     ^~~~~~~~~~~~~~
main.c:51:6: error: stray '#' in program
   51 | Case #6 : Accepted 00:00 1992 4 1085 02_large_00.in
      |      ^
main.c:51:38: error: invalid suffix "_large_00.in" on integer constant
   51 | Case #6 : Accepted 00:00 1992 4 1085 02_large_00.in
      |                                      ^~~~~~~~~~~~~~
main.c:52:6: error: stray '#' in program
   52 | Case #7 : Accepted 00:00 2056 5 2005 02_large_01.in
      |      ^
main.c:52:38: error: invalid suffix "_large_01.in" on integer constant
   52 | Case #7 : Accepted 00:00 2056 5 2005 02_large_01.in
      |                                      ^~~~~~~~~~~~~~
main.c:53:6: error: stray '#' in program
   53 | Case #8 : Accepted 00:00 2064 6 27565 03_maximum_00.in
      |      ^
main.c:53:39: error: invalid suffix "_maximum_00.in" on integer constant
   53 | Case #8 : Accepted 00:00 2064 6 27565 03_maximum_00.in
      |                                       ^~~~~~~~~~~~~~~~
main.c:61:13: error: stray '#' in program
   61 | Judge Input #  (  | )  Judge Output #  (  | )
      |             ^
main.c:61:37: error: stray '#' in program
   61 | Judge Input #  (  | )  Judge Output #  (  | )
      |                                     ^