結果
問題 | No.1643 Not Substring |
ユーザー |
|
提出日時 | 2024-03-21 12:53:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 4,366 ms |
コンパイル使用メモリ | 251,200 KB |
最終ジャッジ日時 | 2025-02-20 10:37:16 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; string S; int cnt[26]; int main() { cin >> S; for (int i = 0; i < S.size(); i++) { cnt[S[i] - 'a']++; } cout << string(cnt[0] + 1, 'a') << endl; return 0; }