結果
問題 |
No.535 自然数の収納方法
|
ユーザー |
![]() |
提出日時 | 2025-03-15 16:14:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 478 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 159,216 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-15 16:14:29 |
合計ジャッジ時間 | 4,219 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 8 RE * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; inline int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} return x*f; } inline void print(int x){ static int s[20],t=0; do s[++t]=x%10,x/=10;while(x); while(t) putchar(s[t--] + '0'); } int a[15]={0,1,2,7,44,366,3747,45228,630312,9953064,175687524}; signed main(){ cout<<a[read()]<<endl; return 0; }