1
+ <!DOCTYPE html>
2
+ < html lang ="ja ">
3
+
4
+ < head >
5
+ < meta charset ="UTF-8 ">
6
+ <!-- Uikit -->
7
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
+ < link rel ="stylesheet " href ="https://judge.yosupo.jp/public/css/uikit.min.css " />
9
+ < script src ="https://judge.yosupo.jp/public/js/uikit.min.js "> </ script >
10
+ < script src ="https://judge.yosupo.jp/public/js/uikit-icons.min.js "> </ script >
11
+ <!-- Katex -->
12
+ < link rel ="
stylesheet "
href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/katex.min.css "
13
+ integrity ="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j " crossorigin ="anonymous ">
14
+ < script defer src ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/katex.min.js "
15
+ integrity ="sha384-9Nhn55MVVN0/4OFx7EE5kpFBPsEMZxKTCnA+4fqDmg12eCTqGi6+BB2LjY8brQxJ "
16
+ crossorigin ="anonymous "> </ script >
17
+ < script defer src ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/contrib/auto-render.min.js "
18
+ integrity ="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI " crossorigin ="anonymous "
19
+ onload ="renderMathInElement(document.body); "> </ script >
20
+ <!-- Ace editor-->
21
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js "> </ script >
22
+
23
+ < style >
24
+ h2 {
25
+ border-bottom : 1px solid # CCC ;
26
+ }
27
+ </ style >
28
+ < script >
29
+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
30
+ renderMathInElement (
31
+ document . body , {
32
+ delimiters : [
33
+ { left : "$$" , right : "$$" , display : true } ,
34
+ { left : "$" , right : "$" , display : false } ] ,
35
+ ignoredTags : [ ] ,
36
+ } )
37
+ for ( e of document . getElementsByClassName ( "sample-code" ) ) {
38
+ var editor = ace . edit ( e ) ;
39
+ editor . setOption ( "maxLines" , "Infinity" ) ;
40
+ editor . setReadOnly ( true ) ;
41
+ editor . getSession ( ) . setMode ( "ace/mode/c_cpp" ) ;
42
+ }
43
+ } ) ;
44
+ </ script >
45
+ </ head >
0 commit comments