結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
youthfuldays072
|
| 提出日時 | 2018-06-17 00:29:04 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 372 bytes |
| コンパイル時間 | 1,893 ms |
| コンパイル使用メモリ | 74,220 KB |
| 実行使用メモリ | 50,252 KB |
| 最終ジャッジ日時 | 2024-06-30 16:27:55 |
| 合計ジャッジ時間 | 2,504 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
public class Main{
int[] L;
int N;
long K;
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
int[] date= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int res=0;
for(int i=0;i<12;i++) {
for(int j=1;j<=date[i];j++) {
if(i==(j/10+j%10)) {
res++;
}
}
}
System.out.println(res);
}
}
youthfuldays072