結果
| 問題 | No.756 チャンパーノウン定数 (1) | 
| コンテスト | |
| ユーザー |  TAISA_ | 
| 提出日時 | 2018-12-21 01:28:36 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 423 bytes | 
| コンパイル時間 | 1,475 ms | 
| コンパイル使用メモリ | 165,496 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-25 09:15:11 | 
| 合計ジャッジ時間 | 2,306 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#include <bits/stdc++.h>
#define all(vec) vec.begin(),vec.end()
using namespace std;
using ll=long long;
using P=pair<int,int>;
const ll INF=1LL<<30;
const ll LINF=1LL<<61;
const double eps=1e-9;
const ll MOD=1e9+7;
int main(){
    int d;cin>>d;
    if(d<10){
        cout<<d<<endl;
    }else{
        if(d%2==0){
            cout<<1+(d-10)/20<<endl;
        }else{
            cout<<((d-10)%20)/2<<endl;
        }
    }
}
            
            
            
        