Submission #681668
Source Code Expand
function Main(input) {
input = input.split(" ");
var W = parseInt(input[0], 10);
var H = parseInt(input[1], 10);
if(W % 16 == 0 && H % 9 == 0)
{
console.log("16:9");
}
else
console.log("4:3");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
Submission Info
| Submission Time | |
|---|---|
| Task | A - テレビ |
| User | hiei0222 |
| Language | JavaScript (node.js v5.12) |
| Score | 100 |
| Code Size | 309 Byte |
| Status | AC |
| Exec Time | 109 ms |
| Memory | 6904 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_01.txt, example_02.txt, example_03.txt |
| All | 16_9_01.txt, 16_9_02.txt, 16_9_03.txt, 16_9_04.txt, 16_9_05.txt, 16_9_06.txt, 16_9_07.txt, 16_9_08.txt, 16_9_09.txt, 16_9_10.txt, 16_9_max.txt, 4_3_01.txt, 4_3_02.txt, 4_3_03.txt, 4_3_04.txt, 4_3_05.txt, 4_3_06.txt, 4_3_07.txt, 4_3_08.txt, 4_3_09.txt, 4_3_10.txt, 4_3_max.txt, example_01.txt, example_02.txt, example_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 16_9_01.txt | AC | 108 ms | 6904 KiB |
| 16_9_02.txt | AC | 107 ms | 6904 KiB |
| 16_9_03.txt | AC | 107 ms | 6904 KiB |
| 16_9_04.txt | AC | 107 ms | 6904 KiB |
| 16_9_05.txt | AC | 108 ms | 6904 KiB |
| 16_9_06.txt | AC | 108 ms | 6904 KiB |
| 16_9_07.txt | AC | 108 ms | 6904 KiB |
| 16_9_08.txt | AC | 108 ms | 6904 KiB |
| 16_9_09.txt | AC | 108 ms | 6904 KiB |
| 16_9_10.txt | AC | 108 ms | 6904 KiB |
| 16_9_max.txt | AC | 108 ms | 6904 KiB |
| 4_3_01.txt | AC | 107 ms | 6904 KiB |
| 4_3_02.txt | AC | 107 ms | 6904 KiB |
| 4_3_03.txt | AC | 107 ms | 6904 KiB |
| 4_3_04.txt | AC | 107 ms | 6904 KiB |
| 4_3_05.txt | AC | 107 ms | 6904 KiB |
| 4_3_06.txt | AC | 107 ms | 6904 KiB |
| 4_3_07.txt | AC | 107 ms | 6904 KiB |
| 4_3_08.txt | AC | 107 ms | 6904 KiB |
| 4_3_09.txt | AC | 107 ms | 6904 KiB |
| 4_3_10.txt | AC | 108 ms | 6904 KiB |
| 4_3_max.txt | AC | 108 ms | 6904 KiB |
| example_01.txt | AC | 107 ms | 6904 KiB |
| example_02.txt | AC | 107 ms | 6904 KiB |
| example_03.txt | AC | 109 ms | 6904 KiB |