結果
問題 |
No.721 Die tertia (ディエ・テルツィア)
|
ユーザー |
![]() |
提出日時 | 2018-08-04 17:18:29 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 456 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 17:53:08 |
合計ジャッジ時間 | 877 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 2 |
ソースコード
print((function (g, isLY, D) local y,m,d=g(function (a) a[3]=a[3]+2 return a end) if isLY(y) then D[2]=29 end if D[m]<d then m,d = m+1,d-D[m] end if m==13 then y,m=y+1,1 end return string.format("%d/%.02d/%.02d",y,m,d) end)(function (f) local a={} for e in io.stdin:read("*l"):gmatch("%d+") do table.insert(a,tonumber(e)) end return unpack(f(a)) end, function (n) return n%100==0 and n%400==0 or n%4==0 end, {31;28;31;30;31;30;31;31;30;31;30;31}))