結果
| 問題 |
No.1764 Square
|
| コンテスト | |
| ユーザー |
monaka
|
| 提出日時 | 2022-01-01 22:39:01 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 9,064 ms |
| コンパイル使用メモリ | 230,020 KB |
| 実行使用メモリ | 41,320 KB |
| 最終ジャッジ日時 | 2024-12-31 16:42:09 |
| 合計ジャッジ時間 | 9,214 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
function main(n) {
const q = [ ["A", "E"], ["B"], ["C"], ["D"] ];
for(let i=0; i<n; i++) {
q[(i+1)%4].push( q[i%4].shift() );
}
for(let i=0; i<q.length; i++) {
console.log(q[i].join(""));
}
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split("\n")[0]);
monaka