摘要:
#include int main() { int m; int i; scanf("%d", &m); char x[5]; int y; int z; for (i = 0; i = 'A'&&x[0] <= 'Z') { z=(x[0] - 'A')+1; y = y + z; ... 阅读全文
摘要:
/* 题目大意是指:有n个灯泡,按1-n编号,要操作n次,第i次操作是将标号是i的倍数的变成相反状态。最终求得是n次操作后,编号为n的灯泡的状态,其实就是求n的约束有多少个,及灯泡n被操作了多少次*/#include int main() { int m; int i; int sum = 0; int sum2, flag; while (~scanf... 阅读全文