mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 5832.cpp
This commit is contained in:
parent
3ea1771c15
commit
56be801fcc
24
HDOJ/5832.cpp
Normal file
24
HDOJ/5832.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <cstring>
|
||||
#include <cstdio>
|
||||
using namespace std;
|
||||
#define MAXN 10005000
|
||||
int a[MAXN];
|
||||
int b[MAXN];
|
||||
int len;
|
||||
char str[MAXN];
|
||||
int main()
|
||||
{
|
||||
int i=1;
|
||||
while(scanf("%s", str)==1)
|
||||
{
|
||||
int tomod = 10001;
|
||||
int ans = 0;
|
||||
for(int j = 0; str[j]; j++)
|
||||
ans = (ans * 10 + (str[j] - '0') % tomod) % tomod;
|
||||
if(ans)
|
||||
printf("Case #%d: NO\n", i++);
|
||||
else
|
||||
printf("Case #%d: YES\n", i++);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user