結果
| 問題 | No.661 ハローキティはりんご3個分 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-09-18 05:46:29 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 829 bytes | 
| コンパイル時間 | 862 ms | 
| コンパイル使用メモリ | 95,200 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-22 07:37:28 | 
| 合計ジャッジ時間 | 1,363 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 | 
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>	//cin, cout
#include <vector>	//vector
#include <algorithm> //sort,min,max,count
#include <string>	//string,getline, to_string
#include <ios>		//fixed
#include <iomanip>	//setprecision
#include <utility> //swap, pair
#include <cstdlib>	//abs(int)
#include <cmath>	//sqrt,ceil,M_PI, pow, sin
#include <sstream>	//stringstream,getline
#include <numeric>	//gcd, accumlate
#include <deque>	//deque
#include <random>	//randam_device
using namespace std;
int main() {
	int n;
	cin >> n;
	int temp;
	for (int i = 0; i < n; i++) {
		cin >> temp;
		
		if (temp % 40 == 0) {
			cout << "ikisugi" << endl;
		}
		else if (temp % 10 == 0) {
			cout << "sugi" << endl;
		}
		else if (temp % 8 == 0) {
			cout << "iki" << endl;
		}
		else {
			cout << temp / 3 << endl;
		}
	}
	return 0;
}
            
            
            
        