[SWEA] 8840 아바바바

Time Lapse :2hour 0min 0sec

8840.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
using namespace std;
int main(int argc, char** argv)
{
int test_case;
int T;
scanf("%d",&T);
long long num;
for(test_case = 1; test_case <= T; ++test_case){
scanf("%lld",&num);
printf("#%d %lld\n",test_case,(num/2)*(num/2));
}
return 0;//정상종료시 반드시 0을 리턴해야합니다.
}
Author: Song Hayoung
Link: https://songhayoung.github.io/2020/08/04/PS/SWEA/8840/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.