結果

問題 No.661 ハローキティはりんご3個分
ユーザー MayimgMayimg
提出日時 2018-12-27 18:24:53
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 1,432 ms
コンパイル使用メモリ 162,628 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-09 03:04:42
合計ジャッジ時間 1,929 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
6,944 KB
testcase_02 WA -
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,948 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 % 8 == 0 && a % 10 == 0) {
	  puts("ikisugi");
	}
	else if (a % 10 == 0) {
	  puts("sugi");
	}
	else if (a % 8 == 0) {
	  puts("iki");
	}
	else {
	  cout << a / 3 << endl;
	}
  }
  return 0;
}
0