結果
問題 |
No.1229 ラグビーの得点パターン
|
ユーザー |
|
提出日時 | 2020-09-18 21:22:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 182 bytes |
コンパイル時間 | 1,482 ms |
コンパイル使用メモリ | 165,808 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-22 08:29:05 |
合計ジャッジ時間 | 2,338 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 6 WA * 19 |
ソースコード
#include<bits/stdc++.h> using namespace std; int N,A[110]; int main(){ cin>>N; A[0]=1; for(int i=0;i<N;i++)A[i+3]+=A[i],A[i+5]+=A[i],A[i+7]+=A[i]; cout<<A[N]<<endl; }