結果

問題 No.2016 Countdown Divisors
ユーザー planes
提出日時 2022-07-22 22:24:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 1,643 ms
コンパイル使用メモリ 169,384 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-04 06:56:06
合計ジャッジ時間 5,190 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h> 
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 #define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)

void solve() {
ll N;cin>>N;
vector<ll> vec={0,1,2,1,1,1,2,1,1,2,2};
if(N<=10) cout<<vec[N]<<endl;
else cout<<2<<endl;


}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
    ll t;cin>>t;
    for(ll i=0;i<t;i++) {
        solve();
    }
}
0