結果

問題 No.188 HAPPY DAY
ユーザー 6soukiti296soukiti29
提出日時 2019-07-19 21:39:27
言語 Nim
(2.0.2)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 2,504 ms
コンパイル使用メモリ 66,308 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-14 23:37:39
合計ジャッジ時間 2,880 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
/home/judge/data/code/Main.nim(1, 17) Warning: imported and not used: 'strutils' [UnusedImport]

ソースコード

diff #

import sequtils,strutils
var
    cnt = 0
for m in 1..12:
    for d in 1..31:
        if m in @[2,4,6,9,11] and d == 31:
            break
        if d mod 10 + d div 10 == m:
            cnt += 1
            
echo cnt
0