結果

問題 No.1819 Mirrored 2
ユーザー 沙耶花
提出日時 2022-01-21 22:04:59
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 16,537 ms
コンパイル使用メモリ 316,908 KB
最終ジャッジ日時 2025-01-27 13:48:37
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 WA * 15 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint;
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
#define Inf 1000000001

int main(){
	
	mint::set_mod(90007);
	
	int P,Q,x,y;
	cin>>P>>Q>>x>>y;
	
	string ans = to_string(y);
	reverse(ans.begin(),ans.end());
	
	mint cur = stoi(ans);
	while(cur.val()!=x){
		cur *= 10;
		ans += '0';
	}
	cout<<ans<<endl;
	
	return 0;
}
0