結果
問題 | No.1114 足し算盆に返らず |
ユーザー |
![]() |
提出日時 | 2020-07-17 21:28:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 1,531 bytes |
コンパイル時間 | 1,899 ms |
コンパイル使用メモリ | 194,876 KB |
最終ジャッジ日時 | 2025-01-11 22:11:08 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>/*#include <boost/multiprecision/cpp_dec_float.hpp>#include <boost/multiprecision/cpp_int.hpp>*/#pragma GCC target("avx")#pragma GCC optimize("O3")#pragma GCC optimize("unroll-loops")using namespace std;/*namespace mp = boost::multiprecision;using Bint = mp::cpp_int;using Real = mp::number<mp::cpp_dec_float<1024>>;*/#define lli long long int#define uli unsigned long long int#define INF 9999999999999999#define rep(i,m,n) for(lli i = m;i < n;i++)#define rrep(i,m,n) for(lli i=m-1;i>=n;i--)#define pb(n) push_back(n)#define UE(N) N.erase(unique(N.begin(),N.end()),N.end());#define Sort(n) sort(n.begin(), n.end())#define Rev(n) reverse(n.begin(),n.end())#define Out(S) cout << S << endl#define NeOut(S) cout << S#define HpOut(S) cout << setprecision(50) << S << endl#define Vec(K,L,N,S) vector<L> K(N,S)#define DV(K,L,N,M,S) vector<vector<L>> K(N,vector<L>(M,S))#define TV(K,L,N,M,R,S) vector<vector<vector<L>>> K(N,vector<vector<L>>(M,vector<L>(R,S)))#define pint pair<lli,lli>#define paf(L,R) pair<L,R>#define mod 1000000007#define MAX 10000000#define ALL(a) a.begin(),a.end()#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))lli gcd(lli num1, lli num2){return num2 != 0 ? gcd(num2, num1 % num2) : num1;}int main(){ios::sync_with_stdio(false);cin.tie(0);lli A,B,C,D,E,H,W,M,K,L,R,X,Y,N,num=0,sum=0,flag=0;string S,T;cin >> N;num=1;while(num<=N){cout << num << " ";num+=2;}Out("");}