随笔分类 -  模拟

摘要:#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... 阅读全文
posted @ 2015-08-13 23:20 sola94 阅读(119) 评论(0) 推荐(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... 阅读全文
posted @ 2015-08-13 19:10 sola94 阅读(126) 评论(0) 推荐(0)
摘要:#include#include#include#include#include#include#include#include#include#includeusing namespace std;int a[1000000+100];int main(){ int n; int i,... 阅读全文
posted @ 2015-07-02 01:42 sola94 阅读(129) 评论(0) 推荐(0)
摘要:题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ... 阅读全文
posted @ 2015-06-04 20:11 sola94 阅读(123) 评论(0) 推荐(0)
摘要:#include#include#include#include#include#include#include#include#include#define LL long longusing namespace std;const int MAXN=10;const int INF=0x3f3f... 阅读全文
posted @ 2015-04-21 20:24 sola94 阅读(191) 评论(0) 推荐(0)
摘要:#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[... 阅读全文
posted @ 2015-04-21 20:22 sola94 阅读(142) 评论(0) 推荐(0)
摘要:题意:给出若干数字 如果能被6整除 输出BEER!! 否则输出 BOOM!!思路:用三维数组存下0到9 暴力出每个数的值 求出结果 (这题有点坑在于 1 数字可能不存在 2 数字的数量不确定)#include#include#include#includeusing namespace... 阅读全文
posted @ 2015-04-01 21:14 sola94 阅读(138) 评论(0) 推荐(0)
摘要:B - 报数游戏Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionn个人站成一行玩一个报数游戏。所有人从左到右编号为1到n。游戏开始时,最左边的人报1,... 阅读全文
posted @ 2014-08-16 00:46 sola94 阅读(1099) 评论(0) 推荐(0)