結果

問題 No.661 ハローキティはりんご3個分
ユーザー ゆきのんゆきのん
提出日時 2020-03-13 21:34:07
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 933 bytes
コンパイル時間 1,303 ms
コンパイル使用メモリ 165,388 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-02 07:43:41
合計ジャッジ時間 1,961 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long LL;
typedef pair<LL,LL> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<typename T> T gcd(T a,T b){return b?gcd(b,a%b):a;}
const LL mod=1000000007;
const LL LINF=1LL<<62;
const int INF=1<<30;
int dx[]={1,0,-1,0,1,-1,1,-1};
int dy[]={0,1,0,-1,1,-1,-1,1};
 

int main(){
    int q;cin >> q;
    while(q--){
        int n;cin >> n;
        if(n % 8 == 0 && n % 10 == 0) puts("ikisugi");
        else if(n % 8 == 0) puts("iki");
        else if(n % 10 == 0) puts("sugi");
        else{
            cout << n / 3 << endl;
        }
    }

    return 0;
}
0