結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー 💕💖💞💕💖💞
提出日時 2019-05-06 12:58:08
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 247 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 8,257 ms
コンパイル使用メモリ 426,932 KB
実行使用メモリ 54,292 KB
最終ジャッジ日時 2024-04-30 20:27:04
合計ジャッジ時間 13,974 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 244 ms
53,980 KB
testcase_01 AC 244 ms
54,176 KB
testcase_02 AC 246 ms
54,068 KB
testcase_03 AC 243 ms
54,068 KB
testcase_04 AC 246 ms
54,184 KB
testcase_05 AC 239 ms
54,112 KB
testcase_06 AC 244 ms
54,132 KB
testcase_07 AC 236 ms
54,176 KB
testcase_08 AC 239 ms
54,068 KB
testcase_09 AC 238 ms
54,176 KB
testcase_10 AC 243 ms
54,188 KB
testcase_11 AC 235 ms
54,288 KB
testcase_12 AC 241 ms
54,184 KB
testcase_13 AC 241 ms
54,184 KB
testcase_14 AC 241 ms
54,176 KB
testcase_15 AC 242 ms
54,196 KB
testcase_16 AC 245 ms
53,980 KB
testcase_17 AC 247 ms
54,060 KB
testcase_18 AC 240 ms
54,292 KB
testcase_19 AC 242 ms
54,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
    // そもそも M = 10 * Nの制約があるので条件分岐はいらない(問題文の落とし穴)
    /* val (N,M) = (0..1).map { readLine()!!.toInt() }
    when {
      N % 2 == 1 && (M/10)%2 == 1 -> "Yes" 
      N % 2 == 0 && M % 2 == 0 -> "Yes"
      else -> "No"
    }.let { println(it) } */
    println("Yes")
}
0