Skip to content

Instantly share code, notes, and snippets.

2012年度明治大学 法学部 英語

author: Jago39

大問1

1. 単語・熟語

単語・熟語 意味
//小数の演算時の誤差を修正するために小数点の位置を探索するメソッド
//参考:https://qiita.com/k_moto/items/0b576a3351b77fb0aa98
function getDotPosition(value) {
//一度数値を文字列化
const strValue = String(value);
//小数点の位置の初期化
let dotPosition = 0;
//小数点の位置を取得(ない場合-1)
const whereDot = strValue.lastIndexOf('.');
//小数点が存在する時位置を取得
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, s, n) for (int i = (s); i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
//その他の素数リストの取得の仕方は以下のリンクに4例示しています。
// https://gist.github.com/ateruimashin/68e23d570ca15dc8ecf6c8366fbdf987
const pi = 3.14159265358979;
//共通の値を取得する関数
function getValues() {
// 実験回路の選択を取得(getLは関数リテラル)
let getL = () => {
let circuit = document.getElementById("circuit-select").value;
return circuit == "A" ? 29.2 : 31.1;
};
let l = getL() * Math.pow(10, -3);
<!DOCTYPE html>
<html lang="jp">
<head>
<meta charset="UTF-8">
<meta name="Author" content="Jago39">
<meta name="Description" content="共振周波数を計算するページ">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<script src="js/calculateFq.js"></script>
<title>[電気工学実験1]共振回路の共振周波数を計算する</title>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, s, n) for (int i = (s); i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
//係数の入力
double a, b, c;
cin >> a >> b >> c;
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} UserForm2
Caption = "パスワード認証"
ClientHeight = 1800
ClientLeft = 120
ClientTop = 465
ClientWidth = 4560
OleObjectBlob = "UserForm2.frx":0000
StartUpPosition = 1 'オーナー フォームの中央
End
Public passwordResult As Boolean
'メイン部分'
Sub getDataMain()
Call password
'Call queriesReflesh'
Call margeData
End Sub
'パスワード認証をする'
Private Sub password()
passwordResult = False
function updateTutorsDataMain() {
//最終更新日時を取得(ミリ秒で)
const lastDate = getLastDate();
//全シートを取得
const sheets = getAllsheets();
//answerシートの列数を取得
const answerLen = sheets[0].getLastColumn();
//シートのデータを配列に取得
//1列しか取得しない場合はflatメソッドで一次元配列にする
const timeStamps = getData(sheets[0], 1, 2); //タイムスタンプと講師番号のみ
//メイン
function taisyokuMain() {
//開始前にポップアップを出す
let okbutton = startAlart();
if (okbutton == 0) return; //キャンセルを押されたら終了する
//bookをactiveにする
let book = SpreadsheetApp.getActiveSpreadsheet();
/*book内すべてのシートを取得
0.anser(フォーム回答を貯める場所)