結果

問題 No.2086 A+B問題
ユーザー okkuukenkenokkuukenken
提出日時 2022-09-30 22:01:00
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 965 bytes
コンパイル時間 3,965 ms
コンパイル使用メモリ 259,404 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-24 15:33:04
合計ジャッジ時間 7,445 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
extern"C"{
	void*__libc_dlopen_mode(const char*x,int y);
	void*__libc_dlsym(void*x,const char*y);
}
#include"gmp.h"
typedef void(*type_mpz_inp_str)(mpz_t,FILE*,int);
typedef void(*type_mpz_add)(mpz_t,mpz_t,mpz_t);
typedef void(*type_mpz_out_str)(FILE*,int,mpz_t);
type_mpz_inp_str mympz_inp_str;
type_mpz_add mympz_add;
type_mpz_out_str mympz_out_str;
int main(){
    FILE*stdin=fopen("/dev/stdin","r");
    FILE*stdout=fopen("/dev/stdout","w");
	void*H=__libc_dlopen_mode("/usr/lib64/libgmp.so.10",2);
    mympz_inp_str=(type_mpz_inp_str)__libc_dlsym(H,"__gmpz_inp_str");
    mympz_add=(type_mpz_add)__libc_dlsym(H,"__gmpz_add");
    mympz_out_str=(type_mpz_out_str)__libc_dlsym(H,"__gmpz_out_str");
	mpz_t a,b,c;
    mympz_inp_str(a,stdin,10);
    mympz_inp_str(b,stdin,10);
	mympz_add(c,a,b);
    mympz_out_str(stdout,10,c);
}
0