結果
問題 | No.932 解法破綻!高橋君 |
ユーザー |
![]() |
提出日時 | 2019-11-29 21:44:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 560 bytes |
コンパイル時間 | 603 ms |
コンパイル使用メモリ | 74,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-20 21:45:21 |
合計ジャッジ時間 | 1,331 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstring> #include <cstdlib> #include <cmath> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int n = s.size(); if ((n + 1) % 3 != 0) { cout << "Failed..." << endl; exit(0); } int b = 1; char c[4] = "AC,"; for (int i = 0; i < n; i++) { if (s[i] != c[i % 3]) b = 0; } cout << (b ? "Done!" : "Failed...") << endl; return 0; }