Submission #25743123
Source Code Expand
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
MyScanner in = new MyScanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
A solver = new A();
solver.solve(1, in, out);
out.close();
}
static class A {
public void solve(int testNumber, MyScanner in, PrintWriter out) {
int N = in.Int();
String S = in.next();
out.println(S.charAt(N - 1) == 'o' ? "Yes" : "No");
}
}
static class MyScanner {
private BufferedReader in;
private StringTokenizer st;
public MyScanner(InputStream stream) {
in = new BufferedReader(new InputStreamReader(stream));
}
public String next() {
while (st == null || !st.hasMoreTokens()) {
try {
String rl = in.readLine();
if (rl == null) {
return null;
}
st = new StringTokenizer(rl);
} catch (IOException e) {
return null;
}
}
return st.nextToken();
}
public int Int() {
return Integer.parseInt(next());
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Weather Forecast |
| User | daira4000 |
| Language | Java (OpenJDK 11.0.6) |
| Score | 100 |
| Code Size | 1780 Byte |
| Status | AC |
| Exec Time | 79 ms |
| Memory | 32904 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| hand_01.txt | AC | 75 ms | 32772 KiB |
| hand_02.txt | AC | 79 ms | 32888 KiB |
| hand_03.txt | AC | 75 ms | 32440 KiB |
| hand_04.txt | AC | 75 ms | 32904 KiB |
| hand_05.txt | AC | 68 ms | 32416 KiB |
| hand_06.txt | AC | 77 ms | 32692 KiB |
| hand_07.txt | AC | 71 ms | 32152 KiB |
| hand_08.txt | AC | 68 ms | 32464 KiB |
| sample_01.txt | AC | 77 ms | 32584 KiB |
| sample_02.txt | AC | 73 ms | 31996 KiB |