結果
| 問題 |
No.3107 45^2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-18 21:05:31 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 11,118 ms |
| コンパイル使用メモリ | 263,464 KB |
| 実行使用メモリ | 44,576 KB |
| 最終ジャッジ日時 | 2025-04-18 21:05:43 |
| 合計ジャッジ時間 | 11,783 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 12 |
ソースコード
import * as fs from 'fs';
// 標準入力を取得
const input = fs.readFileSync('/dev/stdin', 'utf8').trim();
// 処理部分(必要に応じて変えてください)
const output = solve(input);
// 標準出力に出力
console.log(output);
// 実装部分
function solve(input: string): string {
const num = parseInt(input);
return (num ^ 2).toString();
}