結果
| 問題 |
No.2109 Special Week
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-10-29 00:46:48 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 392 bytes |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 5,120 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 03:50:00 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
ソースコード
m, d, k = io.read("*n", "*n", "*n")
t = {31,28,31,30,31,30,31,31,30,31,30,31}
c = 0
z = ""
for i = 1, 7 do
z = z .. string.format("%02d", m) .. string.format("%02d", d)
-- print(z)
if t[m] == d then
d = 1
m = m + 1
if m == 13 then m = 1 end
else
d = d + 1
end
end
y = 0
for j = 0, 9 do
if z:find(tostring(j)) then y = y + 1 end
end
print(k <= y and "Yes" or "No")