結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | nomi |
提出日時 | 2018-07-12 11:28:26 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 2,591 ms |
コンパイル使用メモリ | 166,636 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-04-08 17:37:22 |
合計ジャッジ時間 | 2,134 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,676 KB |
testcase_01 | AC | 2 ms
6,676 KB |
testcase_02 | AC | 2 ms
6,676 KB |
testcase_03 | AC | 2 ms
6,676 KB |
testcase_04 | AC | 2 ms
6,676 KB |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int (i) = (0); (i) < (n); ++(i)) int main() { int n; cin >> n; rep (i, n) { int a; cin >> a; if (a % 8 == 0 && a % 10 == 0) { puts("ikisugi"); } else if (a % 8 == 0) { puts("iki"); } else if (a % 10 == 0) { puts("sugi"); } else { cout << a/3 << endl; } } return 0; }