Submission #00100
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #include <iostream> #include <iomanip> #include <utility> #include <cmath> #include <random> #include <vector> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <string> #include <algorithm> #include <atcoder/all> using namespace std; using namespace atcoder; #define rep(i,n) for(int i = 0; i<n; ++i) #define REP(i,n) for(int i = 1; i<=n; ++i) #define all(x) begin(x),end(x) #define show(obj) for(auto x:obj)cout<<x<<' ';cout<<endl; typedef long long ll; typedef pair< int , int > P; typedef pair<ll,ll> lp; typedef pair< double , double > FP; const int inf = 1001001000; const ll INF = 1LL<<60; const int MOD = ( int )1e9 + 7; int main(){ ll n; cin >> n; map<ll, ll> st; for (ll i = 1; i*i <= n; ++i){ st[i*i] = i; } for (ll i = 1; i*i <= n; ++i){ ll nd = n - i*i; if (st[nd] != 0){ cout << i << ' ' << st[nd] << endl; return 0; } } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0001 - さらば2020、ようこそ2021 |
ユーザー名 | Creamy |
投稿日時 | 2020-12-30 18:35:27 |
言語 | C++17 |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 1010 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.cpp:14:10: fatal error: atcoder/all: No such file or directory #include <atcoder/all> ^~~~~~~~~~~~~ compilation terminated.
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|