結果
問題 |
No.1058 素敵な数
|
ユーザー |
|
提出日時 | 2020-05-22 21:26:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 3,034 ms |
コンパイル使用メモリ | 197,816 KB |
最終ジャッジ日時 | 2025-01-10 14:10:14 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:15:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | int n; scanf("%d",&n); n--; | ~~~~~^~~~~~~~~
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; using lint=long long; int main(){ lint P[]={100003,100019,100043,100049,100057,100069,100103,100109,100129}; vector<lint> ans={1}; rep(i,9) rep(j,9) ans.emplace_back(P[i]*P[j]); sort(ans.begin(),ans.end()); int n; scanf("%d",&n); n--; printf("%lld\n",ans[n]); return 0; }