結果
問題 | No.1732 ~サンプルはちゃんと見て!~ 16進数と8進数(2) |
ユーザー |
|
提出日時 | 2021-11-05 21:59:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 695 ms |
コンパイル使用メモリ | 65,308 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 12:47:38 |
合計ジャッジ時間 | 1,736 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;int T;main(){cin>>T;for(;T--;){int N;cin>>N;int n=N%21;string S="";for(int t=0;t<N/21;t++)S+="ACCACCCCCCCCABACAAFFE";if(n==0){cout<<S<<endl;}else if(n==5){cout<<"AEECC"<<S<<endl;}else if(n==10){cout<<"BBCCCFACAC"<<S<<endl;}else{cout<<-1<<endl;}}}