結果
問題 | No.2714 Amaou |
ユーザー |
![]() |
提出日時 | 2024-04-18 17:21:57 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,219 bytes |
コンパイル時間 | 3,215 ms |
コンパイル使用メモリ | 132,024 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 10:40:03 |
合計ジャッジ時間 | 2,853 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
#include <iostream>#include <vector>#include <deque>#include <unordered_map>#include <string>#include <sstream>#include <cmath>#include <cctype>using namespace std;int t, a, b, i;int x = 0;string words[4] = {};string s;int main(){cin >> t;while(t--){b = 0;fill_n(words, 4, 0);for(i=0; i < 4; i++){cin >> s;for(a=0; a<sizeof(s); a++){s[a] = tolower(s[a]);}words[i] = s;}for(i=0; i < 4; i++){if (words[i] == "akai"){b++;break;}}for(i=0; i < 4; i++){if (words[i] == "marui"){b++;break;}}for(i=0; i < 4; i++){if (words[i] == "okii"){b++;break;}}for(i=0; i < 4; i++){if (words[i] == "umai"){b++;break;}}if (b == 4){x++;}}cout << x;}