結果

問題 No.634 硬貨の枚数1
ユーザー 6soukiti296soukiti29
提出日時 2018-01-19 23:09:33
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 2,785 ms
コンパイル使用メモリ 67,728 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-12 15:43:31
合計ジャッジ時間 6,338 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,384 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 WA -
testcase_23 AC 1 ms
4,380 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 1 ms
4,380 KB
testcase_45 WA -
testcase_46 AC 1 ms
4,380 KB
testcase_47 AC 2 ms
4,376 KB
testcase_48 AC 2 ms
4,376 KB
testcase_49 AC 2 ms
4,376 KB
testcase_50 WA -
testcase_51 AC 1 ms
4,384 KB
testcase_52 AC 2 ms
4,380 KB
testcase_53 WA -
testcase_54 AC 2 ms
4,380 KB
testcase_55 WA -
testcase_56 AC 2 ms
4,376 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 AC 2 ms
4,376 KB
testcase_60 WA -
testcase_61 AC 2 ms
4,376 KB
testcase_62 AC 1 ms
4,384 KB
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
testcase_66 AC 2 ms
4,380 KB
testcase_67 WA -
testcase_68 WA -
testcase_69 AC 2 ms
4,380 KB
testcase_70 WA -
testcase_71 WA -
testcase_72 WA -
testcase_73 AC 2 ms
4,380 KB
testcase_74 WA -
testcase_75 WA -
testcase_76 WA -
testcase_77 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]

ソースコード

diff #

import sequtils,strutils
var
    N = stdin.readline.parseInt

block main:
    for k in 1..3500:
        if k * (k + 1) div 2 == N:
            echo 1
            break main
    
    if N mod 9 == 8:
        echo 3
    else:
        echo 2
0