题解列表

筛选

简单粗暴可AC

摘要:解题思路:直接暴力注意事项:注意输出-1参考代码:#include<stdio.h>int main(){ int a[10005][4]; int n,x,y,m,u; scanf("%d",&u)……

逆序数 (C语言代码)

摘要:#include "stdafx.h"#define max 100int main(){ int n,a[max],i,j,count=0; scanf("%d", &n); for (i = 0;……

与2无关的数 (C语言代码)KE AC

摘要:解题思路:首先在遍历上,只遍历奇数,之间排除能被2整除的数,然后就是取每一位上的数看是否为2;细节再代码中注意事项:注意fg标志的置零位置,和用一个中间遍历t代替i参考代码:#include <cst……