Djangoのウェブサーバーの仕組みは?
ユーザーがリクエストを行ったものに対して、テンプレートの中から1つ選び、データベースのデータと組み合わせて提供する。
一般的なウェブサーバーとの違う点は、テンプレートを通してやりとりを行うこと。
A - Bichrome Cells
■回答
#include <bits/stdc++.h> using namespace std; int main() { // 一年の秒数 int N,A; cin >> N >> A; cout << N*N-A << endl; }
A - Rating Goal
■回答
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b; cout << 2*b-a << endl; }
■備考
A=今回求める数 (a+A)/2 = b A=2b-a
A - New Year
■回答
#include <bits/stdc++.h> using namespace std; int main() { int Time; cin >> Time; int RemainTime = 24+24-Time; cout << RemainTime << endl; }
EX4 - ◯年は何秒?
■回答
#include <bits/stdc++.h> using namespace std; int main() { // 一年の秒数 int seconds = 365 * 24 * 60 * 60; // 以下のコメント/* */を消して追記する cout << seconds << endl; cout << 2*seconds << endl; cout << 5*seconds << endl; cout << 10*seconds << endl; }