結果
| 問題 | No.661 ハローキティはりんご3個分 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-16 01:07:13 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 423 bytes | 
| コンパイル時間 | 1,688 ms | 
| コンパイル使用メモリ | 166,468 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-27 02:58:55 | 
| 合計ジャッジ時間 | 1,990 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
  int i;
  scanf("%d", &i);
  for(int k = 0; k < i; k++)
  {
    int N;
    scanf("%d", &N);
    if (N % 8 == 0 && N % 10 == 0)
    {
      printf("ikisugi\n");
    }
    else if (N % 8 == 0) 
    {
      printf("iki\n");
    }
    else if (N % 10 == 0) 
    {
      printf("sugi\n");
    }
    else
    {
      printf("%d\n", N / 3);
    }
  }
  return 0;
}
            
            
            
        