結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
ccc
|
| 提出日時 | 2018-04-10 17:46:41 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 190 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 20:54:58 |
| 合計ジャッジ時間 | 629 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&N);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N&1){
N>>=1;
printf("7");
N--;
}else{
N>>=1;
}
while(N){
printf("1");
N--;
}
printf("\n");
return 0;
}
ccc