結果
問題 | No.2714 Amaou |
ユーザー |
👑 |
提出日時 | 2024-08-04 21:08:53 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-04 21:08:55 |
合計ジャッジ時間 | 1,393 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
ans = 0local n = io.read("*n", "*l")for i = 1, n dolocal s1, s2, s3, s4 = io.read():match("(%w+) (%w+) (%w+) (%w+)")local t = {s1, s2, s3, s4}table.sort(t)if t[1] == "akai" and t[2] == "marui" and t[3] == "okii" and t[4] == "umai" thenans = ans + 1endendprint(ans)