結果

問題 No.2557 緑以下コンテスト
ユーザー Keitaro NaruseKeitaro Naruse
提出日時 2023-12-02 14:32:44
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 811 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 70,968 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2023-12-02 14:33:30
合計ジャッジ時間 1,266 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 2 ms
6,548 KB
testcase_02 AC 2 ms
6,548 KB
testcase_03 AC 2 ms
6,548 KB
testcase_04 AC 2 ms
6,548 KB
testcase_05 AC 2 ms
6,548 KB
testcase_06 AC 2 ms
6,548 KB
testcase_07 AC 2 ms
6,548 KB
testcase_08 AC 1 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 * @file 2557.cpp
 * @brief yukicoder problem 2557
 * @author Keitaro Naruse
 * @date 2023-12-02
 * @copyright MIT License
 * @details https://yukicoder.me/problems/no/2557
 * */

// # Solution

#include <iostream>
#include <string>
#include <vector>

template < class T >
std::ostream& operator<<( std::ostream& os, const std::vector< T >& v ) {
    for( auto it = v.begin( ); it != v.end( ); it++ ) {
        os << *it << ( it == --v.end( ) ? "" : " " );
    }
    return os;
}

int main( ) {
    //  Read N = [ 1, 4*10^3 ]
    int N;
    std::cin >> N;

    //  Main::Preprocess
    //  Main::Find a solution
    bool is_yes = true;
    std::string answer = ( N < 1200 ) ? "green" : "difficult";
    //  Main::Output a solution
    std::cout << answer << std::endl;
    
    //  Finalize
    return 0;
}
0