結果
問題 | No.2557 緑以下コンテスト |
ユーザー |
|
提出日時 | 2023-12-02 14:32:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 811 bytes |
コンパイル時間 | 534 ms |
コンパイル使用メモリ | 69,836 KB |
最終ジャッジ日時 | 2025-02-18 03:32:35 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
/*** @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 solutionbool is_yes = true;std::string answer = ( N < 1200 ) ? "green" : "difficult";// Main::Output a solutionstd::cout << answer << std::endl;// Finalizereturn 0;}