CCCPaste

Untitled

#include <stdio.h>

int main() {
int n;
scanf("%d", &n);

2024-03-27_stats.json

{
"ip": {
"128.199.242.196": 1363,
"192.3.101.25": 3,
"58.218.204.183": 3,

Change 404 to 403

1.

# views.py
from django.shortcuts import render

Replace field image_url in new model

1. Създавам нов модел Image в който дефинираме image_url. Мога да добавя и допълнителна логика за снимката, като created-at, modified_at, size и др. В модела Place добавяме image, което е свързано с модела Image чрез ForeignKey. Изтриваме image-url от Place.

from django.db import models
from django.contrib.auth import get_user_model

Untitled

typedef long long ll;
class Solution{
public:
vector<int> segment_tree;
vector<int> v;

Untitled

class Solution {
public:
vector<int> idx, sz;
int root(int x) {
while(x != idx[x]) {

Untitled

#include <stdio.h>

int main() {
int n;
scanf("%d", &n);

Untitled

class Solution{
public:
vector<int> segment_tree, v;
int gcd(int a, int b) {
if(a < b) {

Untitled

#include <stdio.h>

int main() {
int n;
scanf("%d", &n);

Replace field image_url in new model

1. Създавам нов модел Image в който дефинираме image_url. Мога да добавя и допълнителна логика за снимката, като created-at, modified_at, size и др. В модела Place добавяме image, което е свързано с модела Image чрез ForeignKey. Изтриваме image-url от Place.

from django.db import models
from django.contrib.auth import get_user_model