摘要:
WERTYU 题意: 求错位之前的字符串 题解: 注意空格,回车什么的不用变,所以就是代码中的putchar(c) 还有 i是外面的变量,每次循环i是为了找到对应的下标。 代码: include int main() { char s[]="`1234567890 =QWERTYUIOP[]\\AS 阅读全文
posted @ 2016-08-02 11:43
s1124yy
阅读(146)
评论(0)
推荐(0)
摘要:
TEX Quotes 题意: 变引号。 题解: 要想进步,真的要看一本好书,紫书P45 代码: include int main() { int c,q=1; while((c=getchar())!=EOF) { if (c=='"'){printf("%s",q?"``":"''");q=!q; 阅读全文
posted @ 2016-08-02 11:21
s1124yy
阅读(162)
评论(0)
推荐(0)
摘要:
计时函数 include using namespace std; typedef long long ll; const int INF=0x3f3f3f3f; const ll LINF=0x3f3f3f3f3f3f3f3f; define PI(A) cout N define SII(N,M 阅读全文
posted @ 2016-08-02 01:43
s1124yy
阅读(212)
评论(0)
推荐(0)
浙公网安备 33010602011771号