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
| const fs = require('fs'); | |
| const readline = require('readline'); | |
| function compare(left, right) { | |
| for (let i = 0; i < Math.max(left.length, right.length); i++) { | |
| let leftValue = left.at(i); | |
| let rightValue = right.at(i); | |
| if (leftValue === undefined) return -1; | |
| if (rightValue === undefined) return 1; |
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
| #include <bits/stdc++.h> | |
| #include <cstdlib> | |
| #include<iostream> | |
| using namespace std; | |
| main() { | |
| ios::sync_with_stdio(false); | |
| cin.tie(nullptr); | |
| int T;cin>>T; | |
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
| 'use strict'; | |
| function solve() { | |
| } | |
| function main() { | |
| const numOfCases = rlsn(); | |
| for (let testCase = 0; testCase < numOfCases; testCase++) { |
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
| function solve() { | |
| var input = rlsn(); | |
| return input; | |
| } | |
| // =========== | |
| var T = rlsn(); | |
| while (T--) { | |
| var result = solve(); | |
| cl(result); |
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
| document.componentRegistry = { }; | |
| document.nextId = 0; | |
| export default class Component { | |
| constructor() { | |
| this._id = ++document.nextId; | |
| document.componentRegistry[this._id] = this; | |
| } | |
| mount (container) { |