Submission #20283109
Source Code Expand
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define CREP(i,l,r) for(int i=(l);i<=(r);i++)
#define max(l,r) ((l)>(r)?(l):(r))
#define min(l,r) ((l)<(r)?(l):(r))
#define swap(a,b) {ll tmp=a; a=b; b=tmp;}
int cmpupll(const void *a, const void *b){return((*(ll*)a>*(ll*)b)?1:((*(ll*)a<*(ll*)b)?-1:0));}
void sortup(ll *array,int n){REP(i,n-1)if(rand()&1){swap(array[0],array[i+1]);}qsort(array,n,sizeof(ll),cmpupll);}
#define N 202020
int main(){
//ll n,m; scanf("%lld%lld", &n, &m);
int n; scanf("%d", &n);
//int n, m; scanf("%d%d", &n, &m);
//int a, b, c; scanf("%d%d%d", &a, &b, &c);
//REP(i,n) scanf("%d", &(a[i]));
printf("%d\n", 100-n%100);
}
Submission Info
Submission Time
2021-02-20 21:01:15+0900
Task
A - Star
User
samari06
Language
C (GCC 9.2.1)
Score
100
Code Size
758 Byte
Status
AC
Exec Time
5 ms
Memory
1728 KiB
Compile Error
./Main.c: In function ‘main’:
./Main.c:16:12: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
16 | int n; scanf("%d", &n);
| ^~~~~~~~~~~~~~~
Judge Result
Set Name
Sample
All
Score / Max Score
0 / 0
100 / 100
Status
Set Name
Test Cases
Sample
sample_01.txt, sample_02.txt
All
random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, sample_01.txt, sample_02.txt
Case Name
Status
Exec Time
Memory
random_01.txt
AC
5 ms
1676 KiB
random_02.txt
AC
1 ms
1632 KiB
random_03.txt
AC
1 ms
1640 KiB
random_04.txt
AC
1 ms
1728 KiB
random_05.txt
AC
1 ms
1684 KiB
random_11.txt
AC
1 ms
1656 KiB
random_12.txt
AC
1 ms
1728 KiB
random_13.txt
AC
1 ms
1728 KiB
random_14.txt
AC
2 ms
1632 KiB
random_15.txt
AC
2 ms
1668 KiB
random_16.txt
AC
1 ms
1676 KiB
random_21.txt
AC
1 ms
1644 KiB
random_22.txt
AC
2 ms
1652 KiB
random_23.txt
AC
3 ms
1660 KiB
random_24.txt
AC
1 ms
1684 KiB
sample_01.txt
AC
3 ms
1676 KiB
sample_02.txt
AC
1 ms
1680 KiB