結果
| 問題 |
No.3264 岩井数
|
| コンテスト | |
| ユーザー |
ゼリトキ
|
| 提出日時 | 2025-09-06 13:58:55 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 695 bytes |
| コンパイル時間 | 3,365 ms |
| コンパイル使用メモリ | 281,836 KB |
| 実行使用メモリ | 13,656 KB |
| 最終ジャッジ日時 | 2025-09-06 13:59:53 |
| 合計ジャッジ時間 | 9,902 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 18 |
ソースコード
#include <bits/stdc++.h>
#include "atcoder/lazysegtree"
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ll long long
const long long mod=998244353;
const long long hmod=46216567629137;
int main(){
cin.tie(0)->sync_with_stdio(0);
cout.tie(0);
ll N;
cin>>N;
vector<ll>yiwiy;
for(ll i=10000;i<=1000000;i++){
string res;
res+=to_string(i);
reverse(res.begin(),res.end());
if(res[0]=='0') continue;
res+=to_string(i);
res+='9';
yiwiy.push_back(stoll(res));
}
rep(i,yiwiy.size()){
if(yiwiy[i]%N==0){
cout<<yiwiy[i]<<endl;
return 0;
}
}
}
ゼリトキ