結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
mixjuice
|
| 提出日時 | 2018-06-26 17:08:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 537 bytes |
| コンパイル時間 | 1,827 ms |
| コンパイル使用メモリ | 193,028 KB |
| 最終ジャッジ日時 | 2025-01-06 11:36:36 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
int a[n];
rep(i,n){
cin >> a[i];
}
rep(i,n){
if(a[i] % 8 == 0 && a[i] % 10 == 0){
cout << "ikisugi" << endl;
}else if(a[i] % 10 == 0){
cout << "sugi" << endl;
}else if(a[i] % 8 == 0){
cout << "iki" << endl;
}else{
cout << a[i] / 3 << endl;
}
}
return 0;
}
mixjuice