This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class f22aa021_Maeda { | |
| public static void main(String[] args) { | |
| // Exception handling with Try Catch System. | |
| // case to determine the month -> if it is over 12, it is treated as an exception. | |
| // write by Nknight AMAMIYA. | |
| try { | |
| Scanner sc = new Scanner(System.in); | |
| Integer intake = sc.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "ES2022", | |
| "sourceMap": false, | |
| "module": "CommonJS", | |
| "rootDir": "src/lib", | |
| "outDir": "src/runner" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>React jsx-esm-standalone</title> | |
| <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
| <!-- @babel/standaloneでESModuleを利用するために、data-type="module"を追加 --> | |
| <script type="text/babel" data-type="module"> | |
| // CDN経由でReactを読み込む(ESModuleであればブラウザから直接利用可能) | |
| import React, {useEffect , useState } from "https://cdn.skypack.dev/react"; | |
| import ReactDOM from "https://cdn.skypack.dev/react-dom "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { NextPage } from 'next' | |
| import { useEffect } from 'react' | |
| import * as THREE from 'three' | |
| const Home: NextPage = () => { | |
| let canvas: HTMLElement | |
| useEffect(() => { | |
| if (canvas) return | |
| // canvasを取得 | |
| canvas = document.getElementById('canvas')! |
NewerOlder