mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1411.c
This commit is contained in:
parent
ab379ffdb2
commit
76cdbf71bd
27
QUSTOJ/1411.c
Normal file
27
QUSTOJ/1411.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
long inc,i;
|
||||
if(scanf("%d",&inc)!=1)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
for(i=2;i<inc;i++)
|
||||
{
|
||||
if(inc%i==0)
|
||||
{
|
||||
printf("0\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
printf("1\n");
|
||||
return 0;
|
||||
}
|
||||
/**************************************************************
|
||||
Problem: 1411
|
||||
User: 1508080112
|
||||
Language: C
|
||||
Result: 正确
|
||||
Time:0 ms
|
||||
Memory:748 kb
|
||||
****************************************************************/
|
Loading…
Reference in New Issue
Block a user