結果
| 問題 | No.3107 45^2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-18 21:07:41 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| コード長 | 894 bytes |
| 記録 | |
| コンパイル時間 | 10,947 ms |
| コンパイル使用メモリ | 264,952 KB |
| 実行使用メモリ | 43,520 KB |
| 最終ジャッジ日時 | 2025-04-18 21:07:55 |
| 合計ジャッジ時間 | 8,884 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 |
ソースコード
import * as fs from "fs";
// util for input
const lineit = (function* () { for (const line of fs.readFileSync(process.stdin.fd, "utf8").split("\n")) yield line.trim(); })();
const wordit = (function* () { while (true) { let line = lineit.next(); if (line.done) break; for (const word of String(line.value).split(" ")) yield word; } })();
const charit = (function* () { while (true) { let word = wordit.next(); if (word.done) break; for (const char of String(word.value).split("")) yield char; } })();
const readline = () => String((lineit.next()).value);
const read = () => String((wordit.next()).value);
const readchar = () => String((charit.next()).value);
// main
const main = function () {
// TODO edit the code
// param
let n: number;
// init
n = Number(read());
// solve
let ans;
ans=n*n;
// answer
console.log(ans);
return;
};
main();