JinPeng

JinPeng : 3293
5 年前

#include <stdio.h> #include <string.h> char str [ 1000000 ]; int main () { int x ; while ( scanf ( "%s" , str + 1 ) != EOF ) { int len = strlen ( str + 1 ); str [ 0 ] = '0' ; ...查看全文
JinPeng : 1006
5 年,1 月前

#include <stdio.h> #define N 1000100 int prime [ N ] = { 1 }, sum [ N ] = { 0 }; int n , m ; void init () { // assign 1 to all the elements in prime. for ( int i = 2 ; i <= N - 100 ; i ++ ) prime [ i ] = 1 ; ...查看全文
JinPeng : 1043
5 年,1 月前

include include int unique[400]; int a[400]; int main() { int t, n, maxid, flag; scanf(“%d”, &t); for(int cas=0;cas<t;cas++) { maxid = - 1 ; scanf ( "%d" , & n ); for ( int i = 0 ; i < n ; i ++ ) { ...查看全文