結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-05-13 00:11:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 67,456 KB |
| 最終ジャッジ日時 | 2025-01-29 06:20:50 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 |
ソースコード
#include <iostream>
using namespace std;
int main(){
string s;cin>>s;
int ans = 0;
for(int i = 0; s.size() > i; i++){
if(s[i] == 'a')ans++;
}
for(int i = 0; ans+1 > i; i++){
cout << 'a';
}
cout << endl;
}