MCPcopy Index your code
hub / github.com/algorithmzuo/algorithm-journey / main

Method main

src/class176/Code03_SockFromZ1.java:104–124  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

102 }
103
104 public static void main(String[] args) throws Exception {
105 FastReader in = new FastReader(System.in);
106 PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
107 n = in.nextInt();
108 m = in.nextInt();
109 for (int i = 1; i <= n; i++) {
110 arr[i] = in.nextInt();
111 }
112 for (int i = 1; i <= m; i++) {
113 query[i][0] = in.nextInt();
114 query[i][1] = in.nextInt();
115 query[i][2] = i;
116 }
117 prepare();
118 compute();
119 for (int i = 1; i <= m; i++) {
120 out.println(ans1[i] + "/" + ans2[i]);
121 }
122 out.flush();
123 out.close();
124 }
125
126 // 读写工具类
127 static class FastReader {

Callers

nothing calls this directly

Calls 6

nextIntMethod · 0.95
prepareMethod · 0.95
computeMethod · 0.95
printlnMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected