結果

問題 No.661 ハローキティはりんご3個分
ユーザー kyo1kyo1
提出日時 2020-04-20 17:29:27
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 424 bytes
コンパイル時間 1,775 ms
コンパイル使用メモリ 162,040 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-16 00:48:45
合計ジャッジ時間 2,132 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a % 80 == 0) {
      cout << "ikisugi" << '\n';
    } else if (a % 8 == 0) {
      cout << "iki" << '\n';
    } else if (a % 10 == 0) {
      cout << "sugi" << '\n';
    } else {
      cout << a / 3 << '\n';
    }
  }
  return 0;
}
0