結果
| 問題 | No.661 ハローキティはりんご3個分 | 
| コンテスト | |
| ユーザー |  gon_027 | 
| 提出日時 | 2018-09-09 16:59:24 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 627 bytes | 
| コンパイル時間 | 1,064 ms | 
| コンパイル使用メモリ | 54,492 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 15:28:24 | 
| 合計ジャッジ時間 | 1,299 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
#define p(x) cout << x << endl;
#define el cout << endl;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int i;
    cin >> i;
    int n[i];
    for(int j = 0; j < i; ++j){
        cin >> n[j];
    }
    for(int j = 0; j < i; ++j){
        if (n[j] % 8 == 0 && n[j] % 10 == 0){
            cout << "ikisugi" << endl;
        }else if(n[j] % 10 == 0){
            cout << "sugi" << endl;
        }else if (n[j] % 8 == 0){
            cout << "iki" << endl;
        }else if (n[j] % 3 == 0){
            cout << (n[j] / 3) << endl;
        }
    }
}
            
            
            
        