結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
iwltwm
|
| 提出日時 | 2018-03-09 23:28:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 402 bytes |
| コンパイル時間 | 473 ms |
| コンパイル使用メモリ | 64,072 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-10 19:51:13 |
| 合計ジャッジ時間 | 877 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <iostream>
using namespace std;
void printer(int N) {
bool b = true;
if (N % 8 == 0) {
b = false; cout << "iki" << flush;
}
if (N % 10 == 0) {
b = false; cout << "sugi" << flush;
}
if (b && N % 3 == 0)
cout << N / 3 << flush;
cout << endl;
}
int main(void) {
int i; cin >> i;
int N[5];
for (int j = 0;j < i;j++)
cin >> N[ j ];
for (int j = 0;j < i;j++)
printer(N[ j ]);
}
iwltwm