結果
問題 |
No.2324 Two Countries within UEC
|
ユーザー |
|
提出日時 | 2023-05-28 14:27:36 |
言語 | JavaScript (node v23.5.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 488 bytes |
コンパイル時間 | 503 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 106,600 KB |
最終ジャッジ日時 | 2024-12-27 01:24:03 |
合計ジャッジ時間 | 98,784 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 TLE * 31 |
ソースコード
function Main(input){ input = input.trim() input = input.split("\n") for(a = 0;a<input.length;a++){ input[a] = input[a].split(" ").map(Number) } reslist = [] for(a = 1;a<input.length;a++){ res = 0 for(b = 1;b<=input[0][1];b++){ if((input[a][0]*b)%input[0][2] == input[a][1]){ res++ } //console.log("a") } reslist.push(res) } console.log(reslist.join("\n")) } Main(require("fs").readFileSync("/dev/stdin", "utf8"));