結果
問題 |
No.3159 Just Answer 10 Integers!
|
ユーザー |
![]() |
提出日時 | 2025-05-23 20:05:37 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,034 bytes |
コンパイル時間 | 4,917 ms |
コンパイル使用メモリ | 335,116 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-23 20:05:49 |
合計ジャッジ時間 | 6,341 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 1 WA * 8 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; typedef long long ll; typedef long double ld; #define sz(c) ((ll)(c).size()) #define ALL(x) x.begin(),x.end() #define LB(A,x) (ll)(lower_bound(ALL(A),x)-A.begin()) #define UB(A,x) (ll)(upper_bound(ALL(A),x)-A.begin()) #define BS(A,x) binary_search(ALL(A),x) #define rep(i,a,b) for(int i=a;i<b;i++) template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; } template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; } using vi = vector<int>; using vvi = vector<vi>; using li =vector<ll>; using lli=vector<li>; const long long mod=998244353; int main() { int n;cin>>n; int p=2; int r=3; li A(10); ll P=p*p*p*p*p*p*p*p*p*p; ll R=r; A[0]=P*R; R*=r; A[1]=P*R; R*=r; A[2]=P*R; R*=r; A[3]=P*R; R*=r; A[4]=P*R; R*=r; A[5]=P*R; R*=r; A[6]=P*R; R*=r; A[7]=P*R; R*=r; A[8]=P*R; R*=r; A[9]=P*R; rep(i,0,n){ cout<<A[i]<<" "; } }