結果

問題 No.3497 Sign up for traP
コンテスト
ユーザー Nakanishi Hiro
提出日時 2026-04-18 00:18:14
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 247 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 405 ms
コンパイル使用メモリ 37,504 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-18 00:18:17
合計ジャッジ時間 1,251 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
    3 | main(i,n){char
      | ^~~~
main.c: In function 'main':
main.c:3:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:3:1: warning: type of 'n' defaults to 'int' [-Wimplicit-int]

ソースコード

diff #
raw source code

#include<stdio.h>
#include<string.h>
main(i,n){char
s[99],*p="_-";scanf("%s",s);for(n=strlen(s);i<n&&strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-",s[i]);i++);puts(n<33&i==n&!strchr(p,*s)&!strchr(p,s[n-1])?"200":"400");}
0