結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2018-03-26 05:02:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 593 bytes |
| 記録 | |
| コンパイル時間 | 447 ms |
| コンパイル使用メモリ | 103,376 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-11 13:52:28 |
| 合計ジャッジ時間 | 885 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<climits>
#include<set>
#include<utility>
using namespace std;
typedef long long int ll;
int main(){
int n, a[5];
cin >> n;
for(int i=0; i<n; i++){
cin >> a[i];
}
for(int i=0; i<n; i++){
if(a[i]%8==0 && a[i]%10==0){
cout << "ikisugi" << endl;
} else if(a[i]%8==0){
cout << "iki" << endl;
} else if(a[i]%10==0){
cout << "sugi" << endl;
} else if(a[i]%3==0){
cout << a[i]/3 << endl;
}
}
return 0;
}
tenkyu9