随笔分类 - 模拟
摘要:#include#include#includeusing namespace std;char num[10000];int get_sum(){ int ret=0; for(int i=0;i<strlen(num);i++) { ret+=(num[i]-'0...
阅读全文
摘要:#include#include#include#include#include#includeusing namespace std;int gcd(int x,int y){ return y==0?x:gcd(y,x%y);}int main(){ int h,m,s; in...
阅读全文
摘要:#include#include#include#include#include#include#include#include#include#includeusing namespace std;int a[1000000+100];int main(){ int n; int i,...
阅读全文
摘要:题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ...
阅读全文
摘要:#include#include#include#include#include#include#include#include#include#define LL long longusing namespace std;const int MAXN=10;const int INF=0x3f3f...
阅读全文
摘要:#include#include#include#include#include#include#include#include#include#define LL long longusing namespace std;int map[10][10];int vis[10][10];int a[...
阅读全文
摘要:题意:给出若干数字 如果能被6整除 输出BEER!! 否则输出 BOOM!!思路:用三维数组存下0到9 暴力出每个数的值 求出结果 (这题有点坑在于 1 数字可能不存在 2 数字的数量不确定)#include#include#include#includeusing namespace...
阅读全文
摘要:B - 报数游戏Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionn个人站成一行玩一个报数游戏。所有人从左到右编号为1到n。游戏开始时,最左边的人报1,...
阅读全文

浙公网安备 33010602011771号