結果
| 問題 | No.756 チャンパーノウン定数 (1) | 
| コンテスト | |
| ユーザー |  Athena2911 | 
| 提出日時 | 2019-03-28 02:50:37 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 313 bytes | 
| コンパイル時間 | 568 ms | 
| コンパイル使用メモリ | 56,024 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 19:02:54 | 
| 合計ジャッジ時間 | 1,464 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
    int a,b,ans;
    cin>>a;
    if(a<=9){
        cout<<a<<endl;
    }else if(a%2==1){
        ans=((a-10)/2+10)%10;
        cout<<ans<<endl;
    }else{
        ans=((a-10)/2+10)/10;
        cout<<ans<<endl;
    }
}
            
            
            
        