摘要:
Description An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roug 阅读全文
摘要:
#include using namespace std; int main() { int n,m; unsigned long long int a,b,c,sum; while((scanf("%d",&n)!=EOF)) { for(int i=0;i>m; sum=0; for(int i=... 阅读全文
摘要:
Description Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisti 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int v=0; int e=0 ; for(int i=0;i<=n-2;i++) { v+=i*(n-i-2); e+=(i*(n-i-2)+1); 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int main() { int flag[100]; int prime[100]; memset(flag,true,sizeof(flag)); memset(prime,0,sizeof(prime)) 阅读全文
摘要:
#include<bits/stdc++.h> #define max 100 using namespace std; int flag[max]; int prime[max]; int main() { int t=0; memset(flag,1,sizeof(flag)); for(int 阅读全文