Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 255 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[int(''.join(j))for j in q]
	if(z[1]<60)*(z[0]<24):print"%02d:%02d - %02d:%02d"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

Credits

  • 279 bytes reduced to 256 by dylnan.

  • 256 bytes reduced to 255 by FlipTrack.

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 255 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[int(''.join(j))for j in q]
	if(z[1]<60)*(z[0]<24):print"%02d:%02d - %02d:%02d"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 256 by dylnan.

  • 256 bytes reduced to 255 by FlipTrack.

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 255 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[int(''.join(j))for j in q]
	if(z[1]<60)*(z[0]<24):print"%02d:%02d - %02d:%02d"%(h/60,h%60,z[0],z[1])

Try it online!

Credits

  • 279 bytes reduced to 256 by dylnan.

  • 256 bytes reduced to 255 by FlipTrack.

added 139 characters in body
Source Link
Neil
  • 2.5k
  • 10
  • 26

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 256255 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[''	z=[int(''.join(j))for j in q]
	if(int(z[1])<60z[1]<60)*(int(z[0])<24z[0]<24):print"%02d:%02d - %s%02d:%s"%%02d"%(h/60,h%60,z[0],z[1])

Try it online! Try it online!

#Credits

  • 279 bytes reduced to 256 by dylnan .

    279 bytes reduced to 256 by dylnan .

  • 256 bytes reduced to 255 by FlipTrack .

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 256 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[''.join(j)for j in q]
	if(int(z[1])<60)*(int(z[0])<24):print"%02d:%02d - %s:%s"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 256 by dylnan .

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 255 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[int(''.join(j))for j in q]
	if(z[1]<60)*(z[0]<24):print"%02d:%02d - %02d:%02d"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 256 by dylnan .

  • 256 bytes reduced to 255 by FlipTrack .

Removed unnecessary attribution
Source Link
Nissa
  • 3.7k
  • 1
  • 19
  • 45

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 256 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[''.join(j)for j in q]
	if(int(z[1])<60)*(int(z[0])<24):print"%02d:%02d - %s:%s"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 277 by dylnan .
  • 279 bytes reduced to 256 by dylnan.

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 256 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[''.join(j)for j in q]
	if(int(z[1])<60)*(int(z[0])<24):print"%02d:%02d - %s:%s"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 277 by dylnan .
  • 279 bytes reduced to 256 by dylnan.

Python 2, (削除) 279 (削除ここまで) (削除) 277 (削除ここまで) 256 bytes

for h in range(1440):
 q=[[[0,(a+"52")[(a=="2")+(a=="5")*2]][a in"01825"]for a in c]for c in[("%02d"%e)[::-1]for e in[h%60,h/60]]]
 if all(q[0]+q[1]):
	z=[''.join(j)for j in q]
	if(int(z[1])<60)*(int(z[0])<24):print"%02d:%02d - %s:%s"%(h/60,h%60,z[0],z[1])

Try it online!

#Credits

  • 279 bytes reduced to 256 by dylnan.
added 36 characters in body
Source Link
Neil
  • 2.5k
  • 10
  • 26
Loading
added 126 characters in body
Source Link
Neil
  • 2.5k
  • 10
  • 26
Loading
Post Undeleted by Neil
Post Deleted by Neil
Source Link
Neil
  • 2.5k
  • 10
  • 26
Loading

AltStyle によって変換されたページ (->オリジナル) /