結果
| 問題 | No.501 穴と文字列 |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2017-05-18 02:54:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 360 bytes |
| コンパイル時間 | 912 ms |
| コンパイル使用メモリ | 71,688 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 16:39:12 |
| 合計ジャッジ時間 | 1,215 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <cstdio>
#include <cstring>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
using namespace std;
int main(){
int n,d;
int _=scanf("%d%d",&n,&d);
string s="";
for(int i=n;i--;)s.push_back('A');
for(int i=0;i<d-n;i++)s[n-i-1]='B';
for(int i=0;i<n-d;i++)s[n-i-1]='C';
puts(s.c_str());
return 0;
}
taba