結果
| 問題 | No.756 チャンパーノウン定数 (1) |
| コンテスト | |
| ユーザー |
TAISA_
|
| 提出日時 | 2018-12-21 01:28:36 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 489µs | |
| コード長 | 423 bytes |
| 記録 | |
| コンパイル時間 | 892 ms |
| コンパイル使用メモリ | 178,452 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-03 23:49:31 |
| 合計ジャッジ時間 | 2,569 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}
}
TAISA_