結果
| 問題 | No.1893 Cycle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-24 14:52:45 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 572 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 52,736 KB |
| 最終ジャッジ日時 | 2026-05-28 14:39:50 |
| 合計ジャッジ時間 | 4,984 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 3 |
ソースコード
function Main(input) {
'use strict';
let data = input.split("\n");
let first_line = data[0].split(" ");
let second_line = data[1];
let x = parseInt(first_line[0]);
let y = parseInt(first_line[1]);
let z = addCorrect(x+4);
if (z === y) {
console.log(addCorrect(z+4));
} else {
console.log(z);
}
}
function addCorrect(num){
let buf = num + 4;
if (12 < buf) {
return buf -= 12;
} else {
return buf;
}
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));