题解列表

筛选

逆序数 (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……

最长单词 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class T1536 { public static void main(String[] ar……

ACM基本输入输出(二)(C语言代码)

摘要:解题思路:此题相比第一道而言,会提前告诉你是几组数据,第一行的2就表示有两组数据。注意事项:参考代码(一):#include <stdio.h> int main() { int N,a,b;……