結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-08-09 19:11:59 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 272µs | |
| コード長 | 756 bytes |
| 記録 | |
| コンパイル時間 | 1,277 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 9,712 KB |
| 最終ジャッジ日時 | 2026-10-12 08:33:18 |
| 合計ジャッジ時間 | 1,957 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <iostream>
#include <list>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdint.h>
#include <iomanip>
using namespace std;
using uint = unsigned int;
using ll = long long;
#define CIN( LL , A ) LL A; cin >> A
#define GETLINE( A ) string A; getline( cin , A )
#define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ )
int main()
{
CIN( ll , i );
ll N;
for( ll j = 0 ; j < i ; j++ ){
cin >> N;
const bool eight = N % 8 == 0;
const bool ten = N % 10 == 0;
if( eight ){
cout << "iki";
}
if( ten ){
cout << "sugi";
}
if( ! eight && ! ten ){
cout << N / 3;
}
cout << endl;
}
return 0;
}