Submission #1768030


Source Code Expand

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
	int a;
	scanf("%d",&a);
	if(a==1){
		printf("1\n1\n");
	}if(a==2){
		printf("1\n2\n");
	}if(a==3){
		printf("2\n1\n2\n");
	}if(a==4){
		printf("1\n4\n");
	}if(a==5){
		printf("2\n1\n4\n");
	}if(a==6){
		printf("2\n2\n4\n");
	}if(a==7){
		printf("3\n1\n2\n4\n");
	}if(a==8){
		printf("1\n8");
	}if(a==9){
		printf("2\n1\n8");
	}if(a==10){
		printf("2\n2\n8\n");
	}
}

Submission Info

Submission Time
Task A - 足し算
User takepanhino
Language C++14 (GCC 5.4.1)
Score 100
Code Size 453 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a);
                ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt
All subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 1 ms 128 KB
subtask0_sample_02.txt AC 1 ms 128 KB
subtask1_01.txt AC 1 ms 128 KB
subtask1_02.txt AC 1 ms 128 KB
subtask1_03.txt AC 1 ms 128 KB
subtask1_04.txt AC 1 ms 128 KB
subtask1_05.txt AC 1 ms 128 KB
subtask1_06.txt AC 1 ms 128 KB
subtask1_07.txt AC 1 ms 128 KB
subtask1_08.txt AC 1 ms 128 KB