結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
|
提出日時 | 2018-12-04 23:09:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 188 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 63,488 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 10:28:22 |
合計ジャッジ時間 | 1,149 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;int d;main(){cin>>d;for(int i=0;i<10;i++)for(int j=!i;j<10;j++){d-=1+!!i;if(d<=0){cout<<(d<0?i:j)<<endl;return 0;}}}