QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#666228#1. I/O TestChenJiarun123450 0ms0kbC++1419.0kb2024-10-22 17:11:482024-10-22 17:11:58

Judging History

你现在查看的是最新测评结果

  • [2024-10-22 17:11:58]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2024-10-22 17:11:48]
  • 提交

config.txt

10000000
10000000

input_test

/*
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define inf 0x3f3f3f3f3f3f3f3fll
#define For(i,l,r) for(register int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(register int i=(l);i>=(r);i--)
#define bug cout<<"Ln:"<<__LINE__<<'\n'
bool M_S;
#ifdef HEAD
#include <set>
#include <map>
#include <cmath>
#include <ctime>
#include <stack>
#include <queue>
#include <deque>
#include <string>
#include <bitset>
#include <vector>
#include <cstdio>
#include <random>
#include <cstring>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <unordered_map>
#else
#include <bits/stdc++.h>
#endif
using namespace std;
#ifndef IO
namespace Fread{
	constexpr int bufsize=(1<<21);
	char buf[bufsize],*s,*t;
	inline char getchar(){
		if(s==t){
			t=(s=buf)+fread(buf,1,bufsize,stdin);
			if(s==t) return '\n';
		}
		return *s++;
	}
}
namespace Fwrite{
	constexpr int bufsize=(1<<21);
	char buf[bufsize],*s=buf,*t=buf+bufsize;
	inline void flush(){fwrite(buf,1,s-buf,stdout);s=buf;}
	inline void putchar(char c){*s++=c;if(s==t)flush();}
	struct Flusher{~Flusher(){flush();}}flusher;
}
#ifdef ONLINE_JUDGE
#define getchar Fread::getchar
#define putchar Fwrite::putchar
#elif defined(FAST)
#define getchar Fread::getchar
#define putchar Fwrite::putchar
#endif
namespace Reader{
	inline bool ischar(char c){return !(c==' '||c=='\n'||c=='\r'||c==EOF);}
	inline bool allchar(char c){return !(c=='\n'||c=='\r'||c==EOF);}
	template <typename T>
	inline void rd(T &x){
		x=0;char c=getchar();int flag=false;
		while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
		while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
		if(flag)x=-x;
	}
	inline void rd(char &c){
		c=getchar();
		while(!ischar(c)) c=getchar();
	}
	inline void rd(char *str){
		char c=getchar();
		while(!ischar(c)) c=getchar();
		while(ischar(c)){
			*str=c,str++;
			c=getchar();
		}
		*str='\0';
	}
	inline void rdln(char *str){
		char c=getchar();
		while(!allchar(c)) c=getchar();
		while(allchar(c)){
			*str=c,str++;
			c=getchar();
		}
		*str='\0';
	}
	template <typename T,typename ...Args>
	void rd(T& x,Args&... Rest){rd(x),rd(Rest...);}
}
using namespace Reader;
namespace Writer{
	template <typename T>
	inline void wr(T x){
		short st[40],tp=0;
		if(x<0) putchar('-'),x=-x;
		do st[++tp]=x%10,x/=10; while(x);
		while(tp) putchar('0'|st[tp--]);
	}
	inline void wr(char c){putchar(c);}
	inline void wr(char *str){int p=0;while(str[p])putchar(str[p++]);}
	inline void wr(const char *str){int p=0;while(str[p])putchar(str[p++]);}
	template <typename T,typename ...Args>
	void wr(T x,Args... Rest){wr(x),wr(Rest...);}
}
using namespace Writer;
#endif
namespace Basic{
	#ifndef LL
	#define int long long
	constexpr int inf=0x3f3f3f3f3f3f3f3f;
	constexpr int INF=__LONG_LONG_MAX__;
	#else
	#define ll long long
	constexpr int inf=0x3f3f3f3f;
	constexpr int INF=__INT_MAX__;
	#endif
	constexpr double eps=1e-4;
	constexpr double dbinf=1e18;
	#define For(i,l,r) for(int i=(l);i<=(r);++i)
	#define Rof(i,l,r) for(int i=(l);i>=(r);--i)
	template <typename T> inline void Tmax(T &a,T b){a=max(a,b);}
	template <typename T> inline void Tmin(T &a,T b){a=min(a,b);}
	template <typename T> inline void Add(T &a,T b,T mod){a+=b;if(a>mod) a-=mod;}
	template <typename T> inline T Abs(T x){return (x<0)?-x:x;}
}
using namespace Basic;
signed main(){
	return 0;
}

/* --- */

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define For(i,l,r) for(int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(int i=(l);i>=(r);i--)
template <typename T> inline void wr(T x){
	short st[40],tp=0;
	if(x<0) putchar('-'),x=-x;
	do st[++tp]=x%10,x/=10; while(x);
	while(tp) putchar('0'|st[tp--]);
}
template <typename T> inline void rd(T &x){
	x=0;char c=getchar();int flag=false;
	while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
	while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
	if(flag)x=-x;
}
signed main(){
	// freopen(".in","r",stdin);
    // freopen(".out","w",stdout);
	return 0;
}

/* --- */


/* 多少次水 zhihu 导致的失之交臂 rnm*/
/*
要打比赛就好好打
不好好打就别进比赛
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define For(i,l,r) for(int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(int i=(l);i>=(r);i--)
signed main(){
	// freopen(".in","r",stdin);
	// freopen(".out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	return 0;
}

namespace IO{
	#define kg putchar(' ')
	#define dn putchar('\n')
	template <typename T> inline void wr(T x){
		short st[40],tp=0;
		if(x<0) putchar('-'),x=-x;
		do st[++tp]=x%10,x/=10; while(x);
		while(tp) putchar('0'|st[tp--]);
	}
	template <typename T> inline void rd(T &x){
		x=0;char c=getchar();int flag=false;
		while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
		while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
		if(flag)x=-x;
	}
}

namespace IO{
    const int BS=200000;
    char ob[BS],*z=ob,ib[BS],*x=ib,*y=ib;
    char gc(){if(x==y) y=(x=ib)+fread(ib,1,BS,stdin);if(x==y) return EOF;return *x++;}
    template<class T> void rd(T &x){
		x=0;char c=gc();bool flag=false;
		while(!isdigit(c)&&c!='-') c=gc();
        if(c=='-') flag=1,c=gc();
		while(isdigit(c)) x=x*10+c-'0',c=gc();
		if(flag) x=-x;
	}
	inline void flush(){fwrite(ob,1,z-ob,stdout),z=ob;} 
	inline void pc(char x){if(z==ob+BS-1)flush();*z=x,++z;}
	#define kg pc(' ')
	#define dn pc('\n')
	template<class T> void wr(T x){
        if(x==0) return pc('0'),void();
		if(x<0) pc('-'),x=-x;
		int stk[30],top=0;
		do stk[++top]=x%10,x/=10; while(x);
		while(top) pc(stk[top--]+'0');
	}
	struct _Flusher{~_Flusher(){flush();}}_flusher;
}
using namespace IO;

/* --------------- fast io --------------- */ // begin
namespace Fread {
const int SIZE = 1 << 21;
char buf[SIZE], *S, *T;
inline char getchar() {
    if (S == T) {
        T = (S = buf) + fread(buf, 1, SIZE, stdin);
        if (S == T) return '\n';
    }
    return *S++;
}
} // namespace Fread
namespace Fwrite {
const int SIZE = 1 << 21;
char buf[SIZE], *S = buf, *T = buf + SIZE;
inline void flush() {
    fwrite(buf, 1, S - buf, stdout);
    S = buf;
}
inline void putchar(char c) {
    *S++ = c;
    if (S == T) flush();
}
struct NTR {
    ~ NTR() { flush(); }
} ztr;
} // namespace Fwrite
#ifdef ONLINE_JUDGE
#define getchar Fread :: getchar
#define putchar Fwrite :: putchar
#endif
namespace Fastio {
struct Reader {
    template<typename T>
    Reader& operator >> (T& x) {
        char c = getchar();
        T f = 1;
        while (c < '0' || c > '9') {
            if (c == '-') f = -1;
            c = getchar();
        }
        x = 0;
        while (c >= '0' && c <= '9') {
            x = x * 10 + (c - '0');
            c = getchar();
        }
        x *= f;
        return *this;
    }
    Reader& operator >> (char& c) {
        c = getchar();
        while (c == ' ' || c == '\n') c = getchar();
        return *this;
    }
    Reader& operator >> (char* str) {
        int len = 0;
        char c = getchar();
        while (c == ' ' || c == '\n') c = getchar();
        while (c != ' ' && c != '\n' && c != '\r') { // \r\n in windows
            str[len++] = c;
            c = getchar();
        }
        str[len] = '\0';
        return *this;
    }
    Reader(){}
} cin;
const char endl = '\n';
struct Writer {
    template<typename T>
    Writer& operator << (T x) {
        if (x == 0) { putchar('0'); return *this; }
        if (x < 0) { putchar('-'); x = -x; }
        static int sta[45];
        int top = 0;
        while (x) { sta[++top] = x % 10; x /= 10; }
        while (top) { putchar(sta[top] + '0'); --top; }
        return *this;
    }
    Writer& operator << (char c) {
        putchar(c);
        return *this;
    }
    Writer& operator << (char* str) {
        int cur = 0;
        while (str[cur]) putchar(str[cur++]);
        return *this;
    }
    Writer& operator << (const char* str) {
        int cur = 0;
        while (str[cur]) putchar(str[cur++]);
        return *this;
    }
    Writer(){}
} cout;
} // namespace Fastio
#define cin Fastio :: cin
#define cout Fastio :: cout
#define endl Fastio :: endl
/* --------------- fast io --------------- */ // end

namespace IO{
	const int BASE=1<<21;
	#define getchar() (p1==p2&&(p2=(p1=ibuf)+fread(ibuf,1,BASE,stdin),p1==p2)?EOF:*p1++)
	char ibuf[BASE],*p1=ibuf,*p2=ibuf;
	template<typename T> void rd(T &x){
		char c=getchar();T f=1;x=0;
		for(;c<'0'||c>'9';c=getchar()) if(c=='-') f=-1;
		for(;c>='0'&&c<='9';c=getchar()) x=x*10+(c-'0');x*=f;
	}
	char obuf[BASE],*p3=obuf;
	#define putchar(x) (p3-obuf==BASE?fwrite(obuf,1,BASE,stdout),p3=obuf,*p3++=x:*p3++=x)
	#define kg putchar(' ')
	#define dn putchar('\n')
	int tmp[40];
	template<typename T> void wr(T x){
		if(x<0) putchar('-'),x=-x;
		int len=(x==0);tmp[1]=0;
		while(x) tmp[++len]=x%10,x/=10;
		while(len) putchar(tmp[len--]+'0');
	}
	struct Flush{~Flush(){fwrite(obuf,1,p3-obuf,stdout);}}flush;
}
using namespace IO;
const int N=10000005;
int n,a[N];
void MAIN(int TEST){
	rd(n);int sum=0;
	For(i,1,n) rd(a[i]),sum+=a[i];
	wr(sum);
}

bool M_T;
signed main(){
	// freopen(".in","r",stdin);
	// freopen(".out","w",stdout);
	double T_S=clock();
	// cerr<<"Memory: "<<1.0*(&M_S-&M_T)/1048576<<"MiB\n";

	int test=1;
	// cin>>test;
	For(TEST,1,test) MAIN(TEST);
	
	double T_T=clock();
	// cerr<<"Time: "<<1.0*(T_T-T_S)/CLOCKS_PER_SEC<<"ms\n";
	return 0;
}

output_test

/*
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define inf 0x3f3f3f3f3f3f3f3fll
#define For(i,l,r) for(register int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(register int i=(l);i>=(r);i--)
#define bug cout<<"Ln:"<<__LINE__<<'\n'
bool M_S;
#ifdef HEAD
#include <set>
#include <map>
#include <cmath>
#include <ctime>
#include <stack>
#include <queue>
#include <deque>
#include <string>
#include <bitset>
#include <vector>
#include <cstdio>
#include <random>
#include <cstring>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <unordered_map>
#else
#include <bits/stdc++.h>
#endif
using namespace std;
#ifndef IO
namespace Fread{
	constexpr int bufsize=(1<<21);
	char buf[bufsize],*s,*t;
	inline char getchar(){
		if(s==t){
			t=(s=buf)+fread(buf,1,bufsize,stdin);
			if(s==t) return '\n';
		}
		return *s++;
	}
}
namespace Fwrite{
	constexpr int bufsize=(1<<21);
	char buf[bufsize],*s=buf,*t=buf+bufsize;
	inline void flush(){fwrite(buf,1,s-buf,stdout);s=buf;}
	inline void putchar(char c){*s++=c;if(s==t)flush();}
	struct Flusher{~Flusher(){flush();}}flusher;
}
#ifdef ONLINE_JUDGE
#define getchar Fread::getchar
#define putchar Fwrite::putchar
#elif defined(FAST)
#define getchar Fread::getchar
#define putchar Fwrite::putchar
#endif
namespace Reader{
	inline bool ischar(char c){return !(c==' '||c=='\n'||c=='\r'||c==EOF);}
	inline bool allchar(char c){return !(c=='\n'||c=='\r'||c==EOF);}
	template <typename T>
	inline void rd(T &x){
		x=0;char c=getchar();int flag=false;
		while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
		while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
		if(flag)x=-x;
	}
	inline void rd(char &c){
		c=getchar();
		while(!ischar(c)) c=getchar();
	}
	inline void rd(char *str){
		char c=getchar();
		while(!ischar(c)) c=getchar();
		while(ischar(c)){
			*str=c,str++;
			c=getchar();
		}
		*str='\0';
	}
	inline void rdln(char *str){
		char c=getchar();
		while(!allchar(c)) c=getchar();
		while(allchar(c)){
			*str=c,str++;
			c=getchar();
		}
		*str='\0';
	}
	template <typename T,typename ...Args>
	void rd(T& x,Args&... Rest){rd(x),rd(Rest...);}
}
using namespace Reader;
namespace Writer{
	template <typename T>
	inline void wr(T x){
		short st[40],tp=0;
		if(x<0) putchar('-'),x=-x;
		do st[++tp]=x%10,x/=10; while(x);
		while(tp) putchar('0'|st[tp--]);
	}
	inline void wr(char c){putchar(c);}
	inline void wr(char *str){int p=0;while(str[p])putchar(str[p++]);}
	inline void wr(const char *str){int p=0;while(str[p])putchar(str[p++]);}
	template <typename T,typename ...Args>
	void wr(T x,Args... Rest){wr(x),wr(Rest...);}
}
using namespace Writer;
#endif
namespace Basic{
	#ifndef LL
	#define int long long
	constexpr int inf=0x3f3f3f3f3f3f3f3f;
	constexpr int INF=__LONG_LONG_MAX__;
	#else
	#define ll long long
	constexpr int inf=0x3f3f3f3f;
	constexpr int INF=__INT_MAX__;
	#endif
	constexpr double eps=1e-4;
	constexpr double dbinf=1e18;
	#define For(i,l,r) for(int i=(l);i<=(r);++i)
	#define Rof(i,l,r) for(int i=(l);i>=(r);--i)
	template <typename T> inline void Tmax(T &a,T b){a=max(a,b);}
	template <typename T> inline void Tmin(T &a,T b){a=min(a,b);}
	template <typename T> inline void Add(T &a,T b,T mod){a+=b;if(a>mod) a-=mod;}
	template <typename T> inline T Abs(T x){return (x<0)?-x:x;}
}
using namespace Basic;
signed main(){
	return 0;
}

/* --- */

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define For(i,l,r) for(int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(int i=(l);i>=(r);i--)
template <typename T> inline void wr(T x){
	short st[40],tp=0;
	if(x<0) putchar('-'),x=-x;
	do st[++tp]=x%10,x/=10; while(x);
	while(tp) putchar('0'|st[tp--]);
}
template <typename T> inline void rd(T &x){
	x=0;char c=getchar();int flag=false;
	while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
	while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
	if(flag)x=-x;
}
signed main(){
	// freopen(".in","r",stdin);
    // freopen(".out","w",stdout);
	return 0;
}

/* --- */


/* 多少次水 zhihu 导致的失之交臂 rnm*/
/*
要打比赛就好好打
不好好打就别进比赛
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define For(i,l,r) for(int i=(l);i<=(r);i++)
#define Rof(i,l,r) for(int i=(l);i>=(r);i--)
signed main(){
	// freopen(".in","r",stdin);
	// freopen(".out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	return 0;
}

namespace IO{
	#define kg putchar(' ')
	#define dn putchar('\n')
	template <typename T> inline void wr(T x){
		short st[40],tp=0;
		if(x<0) putchar('-'),x=-x;
		do st[++tp]=x%10,x/=10; while(x);
		while(tp) putchar('0'|st[tp--]);
	}
	template <typename T> inline void rd(T &x){
		x=0;char c=getchar();int flag=false;
		while(!isdigit(c)){if(c=='-')flag=true;c=getchar();}
		while(isdigit(c)){x=(x<<1)+(x<<3)+(c^48);c=getchar();}
		if(flag)x=-x;
	}
}

namespace IO{
    const int BS=200000;
    char ob[BS],*z=ob,ib[BS],*x=ib,*y=ib;
    char gc(){if(x==y) y=(x=ib)+fread(ib,1,BS,stdin);if(x==y) return EOF;return *x++;}
    template<class T> void rd(T &x){
		x=0;char c=gc();bool flag=false;
		while(!isdigit(c)&&c!='-') c=gc();
        if(c=='-') flag=1,c=gc();
		while(isdigit(c)) x=x*10+c-'0',c=gc();
		if(flag) x=-x;
	}
	inline void flush(){fwrite(ob,1,z-ob,stdout),z=ob;} 
	inline void pc(char x){if(z==ob+BS-1)flush();*z=x,++z;}
	#define kg pc(' ')
	#define dn pc('\n')
	template<class T> void wr(T x){
        if(x==0) return pc('0'),void();
		if(x<0) pc('-'),x=-x;
		int stk[30],top=0;
		do stk[++top]=x%10,x/=10; while(x);
		while(top) pc(stk[top--]+'0');
	}
	struct _Flusher{~_Flusher(){flush();}}_flusher;
}
using namespace IO;

/* --------------- fast io --------------- */ // begin
namespace Fread {
const int SIZE = 1 << 21;
char buf[SIZE], *S, *T;
inline char getchar() {
    if (S == T) {
        T = (S = buf) + fread(buf, 1, SIZE, stdin);
        if (S == T) return '\n';
    }
    return *S++;
}
} // namespace Fread
namespace Fwrite {
const int SIZE = 1 << 21;
char buf[SIZE], *S = buf, *T = buf + SIZE;
inline void flush() {
    fwrite(buf, 1, S - buf, stdout);
    S = buf;
}
inline void putchar(char c) {
    *S++ = c;
    if (S == T) flush();
}
struct NTR {
    ~ NTR() { flush(); }
} ztr;
} // namespace Fwrite
#ifdef ONLINE_JUDGE
#define getchar Fread :: getchar
#define putchar Fwrite :: putchar
#endif
namespace Fastio {
struct Reader {
    template<typename T>
    Reader& operator >> (T& x) {
        char c = getchar();
        T f = 1;
        while (c < '0' || c > '9') {
            if (c == '-') f = -1;
            c = getchar();
        }
        x = 0;
        while (c >= '0' && c <= '9') {
            x = x * 10 + (c - '0');
            c = getchar();
        }
        x *= f;
        return *this;
    }
    Reader& operator >> (char& c) {
        c = getchar();
        while (c == ' ' || c == '\n') c = getchar();
        return *this;
    }
    Reader& operator >> (char* str) {
        int len = 0;
        char c = getchar();
        while (c == ' ' || c == '\n') c = getchar();
        while (c != ' ' && c != '\n' && c != '\r') { // \r\n in windows
            str[len++] = c;
            c = getchar();
        }
        str[len] = '\0';
        return *this;
    }
    Reader(){}
} cin;
const char endl = '\n';
struct Writer {
    template<typename T>
    Writer& operator << (T x) {
        if (x == 0) { putchar('0'); return *this; }
        if (x < 0) { putchar('-'); x = -x; }
        static int sta[45];
        int top = 0;
        while (x) { sta[++top] = x % 10; x /= 10; }
        while (top) { putchar(sta[top] + '0'); --top; }
        return *this;
    }
    Writer& operator << (char c) {
        putchar(c);
        return *this;
    }
    Writer& operator << (char* str) {
        int cur = 0;
        while (str[cur]) putchar(str[cur++]);
        return *this;
    }
    Writer& operator << (const char* str) {
        int cur = 0;
        while (str[cur]) putchar(str[cur++]);
        return *this;
    }
    Writer(){}
} cout;
} // namespace Fastio
#define cin Fastio :: cin
#define cout Fastio :: cout
#define endl Fastio :: endl
/* --------------- fast io --------------- */ // end

namespace IO{
	const int BASE=1<<21;
	#define getchar() (p1==p2&&(p2=(p1=ibuf)+fread(ibuf,1,BASE,stdin),p1==p2)?EOF:*p1++)
	char ibuf[BASE],*p1=ibuf,*p2=ibuf;
	template<typename T> void rd(T &x){
		char c=getchar();T f=1;x=0;
		for(;c<'0'||c>'9';c=getchar()) if(c=='-') f=-1;
		for(;c>='0'&&c<='9';c=getchar()) x=x*10+(c-'0');x*=f;
	}
	char obuf[BASE],*p3=obuf;
	#define putchar(x) (p3-obuf==BASE?fwrite(obuf,1,BASE,stdout),p3=obuf,*p3++=x:*p3++=x)
	#define kg putchar(' ')
	#define dn putchar('\n')
	int tmp[40];
	template<typename T> void wr(T x){
		if(x<0) putchar('-'),x=-x;
		int len=(x==0);tmp[1]=0;
		while(x) tmp[++len]=x%10,x/=10;
		while(len) putchar(tmp[len--]+'0');
	}
	struct Flush{~Flush(){fwrite(obuf,1,p3-obuf,stdout);}}flush;
}
using namespace IO;
const int N=10000005;
int n,a[N];
void MAIN(int TEST){
	rd(n);
	For(i,1,n) wr(100000000),kg;
}

bool M_T;
signed main(){
	// freopen(".in","r",stdin);
	// freopen(".out","w",stdout);
	double T_S=clock();
	// cerr<<"Memory: "<<1.0*(&M_S-&M_T)/1048576<<"MiB\n";

	int test=1;
	// cin>>test;
	For(TEST,1,test) MAIN(TEST);
	
	double T_T=clock();
	// cerr<<"Time: "<<1.0*(T_T-T_S)/CLOCKS_PER_SEC<<"ms\n";
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
input_test Judgement Failed

Test #1:

score: 0
input_test Judgement Failed

input:

10000000
362791508 444097199 572921396 941750895 216675077 510197831 120813374 250387221 686704559 135339222 650097409 931123004 940293945 473908943 452271503 788284226 855749604 506579505 290442099 328084601 436594823 465831404 141380037 696169489 841420070 795720598 353845398 825967520 980502858 2...

output:


result:


Subtask #2:

score: 0
output_test Judgement Failed

Test #2:

score: 0
output_test Judgement Failed

input:

10000000

output:


result: