結果
| 問題 | No.756 チャンパーノウン定数 (1) | 
| コンテスト | |
| ユーザー |  m_tsubasa | 
| 提出日時 | 2018-12-04 00:27:20 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 280 bytes | 
| コンパイル時間 | 1,437 ms | 
| コンパイル使用メモリ | 165,652 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-05 05:48:07 | 
| 合計ジャッジ時間 | 2,226 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int n, ans;
int main() {
  cin >> n;
  if(n < 10)
    cout << n << endl;
  else {
    n -= 9;
    if(n % 2)
      ans = (9 + (n + 1) / 2) / 10;
    else
      ans = (9 + (n + 1) / 2) % 10;
    cout << ans << endl;
  }
  return 0;
}
            
            
            
        